I've scanned the bugzilla bugs list and not found this, I've also
searched my email archive and not found it either.
I'm running Publican 2.8 on KDE Mint 13 (Based on Ubuntu Precise
Pangolin) which is my new laptop OS of choice.
A document I have had no trouble with in the past is behaving rather
strangely now in <screen> and <programlistings> which start with a
non-alpha character.
When rendered as pdf, the formatting is all over the place, however, if
I stick a blank line or an alpha character in front, they render fine in
the pdf. HTML output is unaffected - it renders fine.
So, the following is broken:
<programlisting>
#include <stdio.h>
int main(int argc, char **argv)
{
printf("Hello World");
return 0;
}
</programlisting>
It renders as the following in PDF:
#include <stdio.h>int main(int argc, char **argv){
<stdio.h>int main(int argc, char
**argv)
{
printf("Hello
World");
return
0;
printf("Hello World");
return 0;}
But this works fine:
<programlisting>
x
#include <stdio.h>
int main(int argc, char **argv)
{
printf("Hello World");
return 0;
}
</programlisting>
Similarly, the following screen renders all over the place:
<screen>
----- <-- top window
--- <-- unlocked, but not top
------- <-- locked
----------- <-- bottom window, also locked
</screen>
Which renders as:
-----
<-- top window
---
<-- unlocked, but not top -------
<-- locked-----------
<-- bottom window, also locked
dow
---
<-- unlocked, but not
top -------
<--
locked-----------
<-- bottom window, also
By adding a blank line at the start, or a line starting with a
non-punctuation, causes the rendering to be ok.
The above is being rendered to pdf via fop. (Which I know you are not
keen on!) However, I need indexes to render with page numbers as opposed
to sections titles and in my PDFs that doesn't happen with HTMLtoPDF. :-(
I did download Publican 3.0 source and tried to install it, but it's
refusing to install correctly and the perl Build.PL fails.
Anyway, enough waffle. Is this a known problem or should I log a bug?
Cheers,
Norm.
--
Norman Dunbar
Dunbar IT Consultants Ltd
Registered address:
Thorpe House
61 Richardshaw Lane
Pudsey
West Yorkshire
United Kingdom
LS28 7EL
Company Number: 05132767
_______________________________________________
publican-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/publican-list
Wiki: https://fedorahosted.org/publican