xml declaration messes up indentation

Bug #580896 reported by Jimmy Yuen Ho Wong
6
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://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      py:strip="True">
      </html>

Revision history for this message
lborgman (lennart-borgman) wrote :

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.

Changed in nxhtml:
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
lborgman (lennart-borgman) wrote :

Hi Jimmy, I am changing the status to "Fix Committed". If you still have problem please respond to this.

Changed in nxhtml:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.