Bug 611857

Summary: Using language highlights with programlisting drops zero (0) characters in the text
Product: [Community] Publican Reporter: Deon Ballard <dlackey>
Component: publicanAssignee: Jeff Fearn <jfearn>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 1.6CC: jfearn, mmcallis, nb, publican-list, r.landmann
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-07-08 18:03:52 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:

Description Deon Ballard 2010-07-06 13:47:46 EDT
When I use syntax highlighting (any language), any 0s in the text within the <programlisting> tag is dropped from the HTML.

For example, I have...

<programlisting language="XML"><![CDATA[<?xml version="1.5"?>
<project name="test-bundle" default="main" 
    xmlns:rhq="antlib:org.rhq.bundle">

    <rhq:bundle name="example" version="1.0" description="an example bundle">]]>
</programlisting>

... in an example. In the HTML output, the 1.5 is correctly rendered, but the "1.0" is rendered as "1."

One oddity. I inserted this string, just to test:
0.4.0.5.87.0.0.0.5.6

And it was rendered as:
.4..5.87.0..0.5.6

I've tried this with and without CDATA and using different language types.

Info:
RHEL 5
publican-2.0-0.el5 (this also happened on 1.6 - the upgrade didn't fix it)
publican-redhat-2.0-0.el5
publican-jboss-1.9-0.el5
Comment 1 Ruediger Landmann 2010-07-06 19:06:04 EDT
I cannot reproduce this on Fedora 13. When I build that code example into a new Publican book, the output reads:

Chapter 1. Test Chapter

1.1. Test Section 1
1.2. Test Section 2

This is a test paragraph

<?xml version="1.5"?>
<project name="test-bundle" default="main" 
    xmlns:rhq="antlib:org.rhq.bundle">

    <rhq:bundle name="example" version="1.0" description="an example
bundle">