Bug 572047
| Summary: | callouts containing program listings with code comments breaks build | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Community] Publican | Reporter: | Richard Wilding <rwilding> | ||||
| Component: | publican | Assignee: | Jeff Fearn 🐞 <jfearn> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 1.6 | CC: | jfearn, jwulf, mmcallis, nb, publican-list, rlandman | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | publican-1.6.1-0.fc11 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2010-03-24 00:47:02 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
Created attachment 401628 [details]
Chapter.xml containing code that exposes this bug
In the attachment in Comment 2, the issue is the in line comments, not the language attribute, causing the problem. Are there any other know causes of this issue? The exact cause of this is: a callout containing a program listing, with a code comment, with syntax highlighted enabled. Removing the language attribute disables syntax highlighting thus breaking the chain of causality. This is due to a limitation of the callout handling code which can't handle nested blocks, highlighting the comments in code causes a nested block to be injected in the XML DOM, breaking the callout code. Added a regex to replace the offending nested block with an inline version. Verified fixed in 1.6.1 publican-1.6.1-0.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/publican-1.6.1-0.fc12 publican-1.6.1-0.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/publican-1.6.1-0.fc11 publican-1.6.1-0.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/publican-1.6.1-0.fc13 publican-1.6.1-0.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report. publican-1.6.1-0.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report. publican-1.6.1-0.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report. |
Description of problem: This problem applies to programlistings with language attribute and callouts. <programlisingco> is a parent tag for applying callouts to a progamlisting. If the <programlisting> tag includes the "language" attribute to highlight the subsequent code, the following error occurs when building the document: LibXSLT: error coming back from perl-dispatcher in pm file. Entity: line 1: parser error : Premature end of data in tag span line 1 at /usr/lib/perl5/vendor_perl/5.10.0/Publican/Builder.pm line 744 Example: <programlistingco> <areaspec> <area id="subclass1" coords="2 55"/> <area id="subclass2" coords="3 55"/> <area id="subclass3" coords="4 55"/> <area id="subclass4" coords="5 55"/> </areaspec> <programlisting language="Java"> code here ... </programlisting> Version-Release number of selected component (if applicable): 1.6 How reproducible: Always Additional info: Workaround: remove language attribute from the offending <programlisting> tag.