xml declaration messes up indentation
Bug #580896 reported by
Jimmy Yuen Ho Wong
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nXhtml |
Fix Committed
|
Medium
|
Unassigned |
Bug Description
I only tested this on genshi-nxhtml mode on trunk but it seems the indentation of the close tag is off by 1 if an xml declaration is included.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN"
"http://
<html xmlns="http://
xmlns:py="http://
py:
</html>
To post a comment you must log in.
Thanks Jimmy, a good example.
I have started to revamp the indentation code. There are probably some bugs now that I have no idea of, but the new code will take care of more corner cases.
Please test the new beta 2.09 I have uploaded.