Created attachment 388690 [details] Screenshot of resulting PDF with duplicated text. Description of problem: If I use a callout within my screen tags, Publican duplicates the text Version-Release number of selected component (if applicable): publican-1.4-1.fc12.noarch How reproducible: Always Steps to Reproduce: 1. cd /tmp 2. publican create --name CalloutTest 3. cd CalloutTest 4. Add the text below to en-US/Chapter.xml, right before the closing chapter tag: <section> <title>Callout Test</title> <para>This is a test of callouts within a <literal>screen</literal> tag.</para> <screenco> <areaspec> <area id="make" coords="2"/> <area id="install" coords="3"/> </areaspec> <screen format="linespecific"><prompt>[root@server src]# </prompt><userinput>cd foo.<replaceable>X</replaceable>.<replaceable>Y</replaceable></userinput> <prompt>[root@server foo.<replaceable>X</replaceable>.<replaceable>Y</replaceable>]# </prompt><userinput>make</userinput> <prompt>[root@server foo.<replaceable>X</replaceable>.<replaceable>Y</replaceable>]# </prompt><userinput>make install</userinput></screen> <calloutlist> <callout arearefs="make"> <para>This command compiles the <application>foo</application> source code into an program</para> </callout> <callout arearefs="install"> <para>This command installs the <application>foo</application> application into the proper system directory</para> </callout> </calloutlist> </screenco> </section> 5. publican build --formats=pdf --langs=en-US 6. Examine the resulting PDF Actual results: Duplicated text within the screen section. (Will attach screenshot.) Expected results: The text should not be duplicated. Additional info:
I'm seeing this too, in PDF as well as HTML.
FYI this is caused by the tagging of the content in the screen, prompt etc, it will take some time to fix as I'm pushed for time ATM. Cheers, Jeff.
Re-factored insertCallouts to handle nested tags.
publican-1.5-0.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/publican-1.5-0.fc12
publican-1.5-0.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/publican-1.5-0.fc13
publican-1.5-0.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/publican-1.5-0.fc11
publican-1.5-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.5-0.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.