The following XML when rendered includes the pressgang line numbers: <section> <title>A test topic</title> <programlisting language="XML" role='XML'><![CDATA[<figure> <title>title</title> <mediaobject> <imageobject> <imagedata align='center' fileref='images/imageid.png'/> </imageobject> <textobject> <phrase>description</phrase> </textobject> </mediaobject> </figure>]]></programlisting> </section>
Fixed in 1.7-SNAPSHOT build 201406051424 Tracked this down to the XML having CRLF line endings and the function that added the pressgangeditorlinenumber attribute wasn't taking this into account.
Created attachment 902401 [details] Test Case Adding a test case since the XML in the initial comment doesn't retain the CRLF line endings.
Note: This version is now live on the test/development server.
Verified