[ https://issues.apache.org/jira/browse/FOP-2520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14713410#comment-14713410 ]
Björn Kautler commented on FOP-2520: ------------------------------------ Actually I formatted the code a bit, yes. Here the original code that is given to FOP: {noformat} <fo:block space-before.optimum="0.6em" space-before.minimum="0.4em" space-before.maximum="0.8em"> <fo:wrapper id="N10119"><!--table, customize columns--></fo:wrapper> <fo:wrapper id="N10120"><!--customize, table--></fo:wrapper> <fo:wrapper id="N10127"><!--filter, table--></fo:wrapper> <fo:wrapper id="N1012E"><!--table, filter--></fo:wrapper>You can customize most tables in the product. The configured table view is saved in your user profile and will be restored when you start the prouct the next time.</fo:block> {noformat} And here the oritinal code that is given to XEP: {noformat} <fo:block space-before.optimum="0.6em" space-before.minimum="0.4em" space-before.maximum="0.8em"> <fo:wrapper id="N10120" xmlns:rx="http://www.renderx.com/XSL/Extensions" rx:key="table, customize columns"/> <fo:wrapper id="N10127" xmlns:rx="http://www.renderx.com/XSL/Extensions" rx:key="customize, table"/> <fo:wrapper id="N1012E" xmlns:rx="http://www.renderx.com/XSL/Extensions" rx:key="filter, table"/> <fo:wrapper id="N10135" xmlns:rx="http://www.renderx.com/XSL/Extensions" rx:key="table, filter"/>You can customize most tables in the product. The configured table view is saved in your user profile and will be restored when you start the prouct the next time.</fo:block> {noformat} Both are produced like that by DocBook XSL stylesheets. If I manually change the code given to FOP to this: {noformat} <fo:block space-before.optimum="0.6em" space-before.minimum="0.4em" space-before.maximum="0.8em"><fo:wrapper id="N10119"><!--table, customize columns--></fo:wrapper><fo:wrapper id="N10120"><!--customize, table--></fo:wrapper><fo:wrapper id="N10127"><!--filter, table--></fo:wrapper><fo:wrapper id="N1012E"><!--table, filter--></fo:wrapper>You can customize most tables in the product. The configured table view is saved in your user profile and will be restored when you start the prouct the next time.</fo:block> {noformat} Then there is no space produced. Also there are no actual space characters in the produced PDF, as you can see in the screenshot. Text selection shows that there are no space characters, just blank space that is present. > Empty elements consume space > ---------------------------- > > Key: FOP-2520 > URL: https://issues.apache.org/jira/browse/FOP-2520 > Project: FOP > Issue Type: Bug > Affects Versions: 2.0 > Reporter: Björn Kautler > Attachments: empty space that should not be there.png > > > If you use {{indexterm}} tags in DocBook, the DocBook XSL stylesheets > generate empty {{fo:wrapper}} or {{fo:block}} elements with an {{id}} > attribute. These elements take up visible space if processed with FOP. Using > XEP, those empty tags do not consume any space. > Here an example excerpt from a FO file in question and [attached|^empty space > that should not be there.png] the result. > {code:xml} > <fo:block space-before.optimum="0.6em" space-before.minimum="0.4em" > space-before.maximum="0.8em"> > <fo:wrapper id="N1004F"><!--table, customize columns--></fo:wrapper> > <fo:wrapper id="N10056"><!--customize, table--></fo:wrapper> > <fo:wrapper id="N1005D"><!--filter, table--></fo:wrapper> > <fo:wrapper id="N10064"><!--table, filter--></fo:wrapper>You can customize > most tables in the product. The configured table view is saved in your user > profile and will be restored when you start the prouct the next time. > </fo:block> > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)