[
http://jira.jboss.com/jira/browse/JBDS-178?page=comments#action_12401883 ]
Gleb Galkin commented on JBDS-178:
----------------------------------
Well, I've investigated the problem with line breaking. The conclusion is:
1) If you want to add line-break before or after block element, paragraph for example, you
should use element <para> with appropriate role: <para
role="space-after"> or <para role="space-before">
2) If you want to add line-break anywhere, you should use processing-instruction
<?lb?>
In order to make this features available you should add some code in appropriate files:
1) in *.css:
.space-before{
margin-top:20px;
}
.space-after{
margin-top:20px;
}
.lb{
line-height:20px;
}
2) in *.xsl file for html version:
<xsl:template match="processing-instruction('lb')">
<br class="lb"/>
</xsl:template>
3) in *.xsl file for PDF version:
<!--#### Line breaking ####-->
<xsl:template match="para[@role = 'space-before']">
<fo:block space-before="14.5pt">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:template match="para[@role = 'space-after']">
<fo:block space-after="14.5pt">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:template match="processing-instruction('lb')">
<fo:block space-before="14.5pt">
<xsl:text />
</fo:block>
</xsl:template>
Note, that the size of line-break is the same in all formats (1pt = 1.38px)
DocBook Investigation
----------------------
Key: JBDS-178
URL:
http://jira.jboss.com/jira/browse/JBDS-178
Project: Developer Studio
Issue Type: Task
Components: documentation
Affects Versions: 1.0.0.GA
Reporter: Svetlana mukhina
Assigned To: Gleb Galkin
Priority: Optional
Fix For: 1.1
Learn more about DocBook, the tags that we use in our xml, the attributes of the main
tags, etc.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira