question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Indentation problem

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kddnewtoncommented, Jan 28, 2020

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.

0reactions
kddnewtoncommented, Jul 24, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found