Indentation problem
See original GitHub issueI am trying to use the indentation. I have an problem :
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<foo>
<bar>
baz
</bar>
<baz>
<plop />
</baz>
</foo>
if the balise contain other things than balise xml, for example here, “baz”. the indentation is bad. my output :
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<foo>
<bar>
baz
</bar>
<baz>
<plop />
</baz>
</foo>
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Indentation Error in Python | How to Solve it - Edureka
This article will provide you with a detailed understanding of Indentation error in Python and the solutions to avoid the same.
Read more >How does Indentation Error Work in Python? - eduCBA
Python is a procedural language. The indentation error can occur when the spaces or tabs are not placed properly. There will not be...
Read more >What is Indentation Error? How to Solve Indentation ... - upGrad
In this article we have explained what is Indentation Error in python? Syntax of Indentation and how we can solve it easily?
Read more >Indentation Error in Python [duplicate] - Stack Overflow
This has happened with me too, python is space sensitive, so after " : "(colon) you might have left a space, for example:...
Read more >expected an indented block” Error in Your Python Code
Handling Python's 'Expected an Indented Block' Error ... Errors are an everyday occurrence in Python, just as in any other programming language.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah at the moment even with the
ignore
option set it tries to respect whitespace inside nodes with mixed content. I suppose I can go whole hog on really ignoring whitespace for these kinds of node. I can take a look at doing that later.Alright I’m pretty comfortable saying this is fixed. Going to close this. Feel free to reopen if
v0.10.0
doesn’t fix this for you.