You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Lukas Theussl (JIRA)" <ji...@codehaus.org> on 2011/05/20 08:46:22 UTC

[jira] Created: (MPDF-50) Empty lines in source block are not preserved

Empty lines in source block are not preserved
---------------------------------------------

                 Key: MPDF-50
                 URL: http://jira.codehaus.org/browse/MPDF-50
             Project: Maven 2.x PDF Plugin
          Issue Type: Bug
    Affects Versions: 1.1
            Reporter: Lukas Theussl


Eg with the following xdoc snippet

{code:xml}
<source>
Copyright (C) 2003-2011 XXX

XXX is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
</source>
{code}

the empty line disappears in the pdf.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MPDF-50) Empty lines in source block are not preserved

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPDF-50?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=267513#action_267513 ] 

Lukas Theussl commented on MPDF-50:
-----------------------------------

Will be fixed once doxia-1.3 is used, see DOXIA-430.

As a workaround one can override the linefeed-treatment property in [pdf-config.xml|http://maven.apache.org/plugins/maven-pdf-plugin/usage.html]:

{noformat}
<xsl:attribute-set name="base.pre.style">
    <xsl:attribute name="linefeed-treatment">preserve</xsl:attribute>
</xsl:attribute-set>
{noformat}

> Empty lines in source block are not preserved
> ---------------------------------------------
>
>                 Key: MPDF-50
>                 URL: http://jira.codehaus.org/browse/MPDF-50
>             Project: Maven 2.x PDF Plugin
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Lukas Theussl
>
> Eg with the following xdoc snippet
> {code:xml}
> <source>
> Copyright (C) 2003-2011 XXX
> XXX is free software; you can redistribute it and/or
> modify it under the terms of the GNU General Public License
> </source>
> {code}
> the empty line disappears in the pdf.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira