Bug 570046 - <programlistingco> that includes empty lines in the programlisting causes build error
Summary: <programlistingco> that includes empty lines in the programlisting causes bui...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: 1.6
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jeff Fearn 🐞
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-03 04:01 UTC by Richard Wilding
Modified: 2010-11-24 04:18 UTC (History)
5 users (show)

Fixed In Version: publican-1.6.1-0.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-24 00:46:51 UTC
Embargoed:


Attachments (Terms of Use)

Description Richard Wilding 2010-03-03 04:01:10 UTC
Description of problem:
This problem applies to programlistings with callouts.
<programlisingco> is a parent tag for applying callouts to a progamlisting. If the programlisting contains any empty lines with no data, Publican will fail when building HTML.

Example:
            <programlistingco role="XML">
                <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 role="XML"><![CDATA[<subclass
        name="X"
        discriminator-value="x"
        proxy="x"
        lazy="x"
        dynamic-update="x"
        dynamic-insert="x"
        entity-name="x"

        <property .... />
        .....
</subclass>]]></programlisting>


Version-Release number of selected component (if applicable):
Publican 1.5

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:
DEBUG: Publican::Builder: Highlighting XML
LibXSLT: error coming back from perl-dispatcher in pm file. Empty String at /usr/lib/perl5/vendor_perl/5.10.0/Publican/Builder.pm line 1201

 at /usr/lib/perl5/vendor_perl/5.10.0/Publican/Builder.pm line 744

Expected results:


Additional info:

Comment 1 Richard Wilding 2010-03-10 00:11:39 UTC
A workaround exists:

insert a space in the empty line so that the String is not empty

Comment 3 Ruediger Landmann 2010-03-22 06:25:31 UTC
Verified fixed in 1.6.1

Comment 4 Fedora Update System 2010-03-24 00:13:03 UTC
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

Comment 5 Fedora Update System 2010-03-24 00:13:37 UTC
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

Comment 6 Fedora Update System 2010-03-24 00:14:07 UTC
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

Comment 7 Fedora Update System 2010-03-24 00:46:22 UTC
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.

Comment 8 Fedora Update System 2010-03-24 23:35:56 UTC
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.

Comment 9 Fedora Update System 2010-03-24 23:37:37 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.