On Fri, Mar 5, 2010 at 8:34 AM, thomsen <[email protected]> wrote:
> After generation i can see the linebreak in the XML file:
> <simpara>
> Test1
> <?asciidoc-br ?>
> Test2
> </simpara>
>
> The problem is I also generate a pdf file, but theres no line break in
> the pdf file. How can I get a linebreak in the PDF by using asciidoc?
If you are using dblatex then you need to put this template into a XSL
template file and source it with 'dblatex -p':
<xsl:template match="processing-instruction('asciidoc-br')">
<xsl:text>\newline{} </xsl:text>
</xsl:template>
These changes were merged into asciidoc 8.5.0, so you really should
not have to do anything if you use a version after asciidoc 8.5.0
Please note, that pdf generation can be extremely tricky if you want
the pdf to look a certain way that goes against the tool generating
the pdf. For example pagebreaks can be annoying because the Docbook
specification explicitly forbids inserting hard page breaks although
it grudgingly permits hard pagebreaks to be inserted if really needed.
I have found that rearranging or reformatting content into separate
paragraphs to be helpful with getting an acceptable look and feel for
a PDF. Still the solutions are not perfect because the LaTeX code
sometimes only act as hints rather than command instructions.
I am not familiar with PDF generation with fop so I cannot help you
there. More information about the dblatex formatting can be found at:
http://groups.google.com/group/asciidoc/browse_frm/thread/a254cf949ea7c6c5
Mark.
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/asciidoc?hl=en.