Questions tagged [indentation]

Indenting is used to organize code by indicating blocks, closures, conditionals, and other constructs. It makes code easier to read, and in some languages is used to handle control flow.

0 votes
0 answers
10 views

Action not being executed on indented lines of a list

So I am using Python 3 to create a bot on Telegram but have come across a pickle. Essentially I want anything I post to one channel to automatically be posted to a list of other channels. As there are ...
-1 votes
0 answers
4 views

neovim key tab dont make indentation

I want to make tab with my key tab but when I press my key tab even if there's no world he suggest me world or don't tab at all. Most of the time I don't need but when I want to tab under world that ...
  • 1
0 votes
2 answers
24 views

javascript : Create visible indentation by id - parentId relationship in flatList

I have a flatlist with hierarchy structure represented by ID parentID relationship like so: [ { id: "100", bezeichnung: "Node 1", parentId: null }, { id: "101"...
  • 445
0 votes
2 answers
57 views

How to add indentation to JSON string to fix formatting using JsonSerializer?

A web service is sending me a JSON string. It contains a valid JSON string, but it is poorly formatted. Is there a way I can format it to better display it on the screen? I was hoping to apply ...
  • 433
-2 votes
3 answers
64 views

Text indentation challenge

How do i write a function that prints a text with 2 new lines after each of these characters: ".", "?" and ":" ** I am not allowed to use any modules ** There should be ...
  • 11
-1 votes
1 answer
35 views

I have created a python code to get a simple calculator, but it doesn't show the expected output. Please lend a hand

I made this code for a simple python calculator and it doesn't give the expected output. Instead this issue occurs: if(select_op(choice) == "+"): IndentationError: unexpected indent If ...
  • 1
0 votes
0 answers
18 views

How to include indentation / white spaces / tabs in an html that is contained in an xml document

I have a xml template file that is being used as an email template. I can't use &emsp in the html body as it indicates as the xml is not valid when I try to load it in. I tried using cdata, but it ...
  • 75
0 votes
0 answers
34 views

Problem with indentation in Sublime Text 4

I am suddenly having some problems with indentation in my Sublime Text 4 editor. When I press Enter on a curly brace, it shows this behavior instead of this, as it should normally work (and the way ...
0 votes
0 answers
84 views

How to create paragraphs in c++?

I'm creating a madlib game via C++, and would like the output to be in paragraphs. I would like to create indented lines for the first line of paragraphs, and words that don't cut off. I know there ...
-1 votes
0 answers
48 views

Code Editor Vivado 2020.2. Indenting a line of code does not align it with the other lines. Why and how can I solve it

I have been using xilinx's development environment for a while by now. Sometime when I tab a line of code it doesn't align with the others. It happened in the past but I haven't worried too much since ...
-1 votes
0 answers
32 views

My loop is working wrongly because of some indentation problem

I want to calculate 'hesap1' and 'hesap2'. Actually they must give approximately the same results but they don't. I think problem is in if point. Maybe 'basla+=1' in not properly indented.. Can anyone ...
0 votes
1 answer
47 views

eslint indent error "Expected indentation of 2 spaces but found 4.", angular 14

I'm using "eslint": "^8.23.0" in angular 14 Everything was OK when I used "eslint": "^8.22.0", after update to 8.23.0 I'm getting the following error: My ...
0 votes
0 answers
29 views

Editing a toml file

i have a telegraf configuration file, written as below : [global_tags] [agent] interval = "10s" round_interval = true metric_batch_size = 10000 metric_buffer_limit = 100000 ...
0 votes
1 answer
49 views

File "<stdin">, line 2

>>> while True: print(count) ... count+=1 File "<stdin>", line 2 count+=1 ^^^^^ SyntaxError: invalid syntax I'm trying to do the loops exercise on the learnpython....
-11 votes
1 answer
173 views

Where should we put the opening brace of a class in 1TBS style? [closed]

I have read the Indentation style entry on Wikipedia, but it's not very clear. For K&R style, it says: each function has its opening brace at the next line on the same indentation level as its ...
  • 2,397

15 30 50 per page
1
2 3 4 5
210