From: SourceForge.net <no...@so...> - 2004-03-09 09:28:55
|
Bugs item #894805, was opened at 2004-02-11 14:04 Message generated for change (Comment added) made by quadruplex You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=894805&group_id=21935 Category: DocBook XSL FO Group: None >Status: Open Resolution: None Priority: 5 Submitted By: Joachim Ziegler (quadruplex) Assigned to: Jirka Kosek (kosek) Summary: 1 blank line output too much from external files Initial Comment: I use external code like this: <programlisting linenumbering="numbered"><textobject><textdata fileref="HelloWorld.pl"/></textobject></programlisting> When I transform this to pdf by the XSLT stylesheets with <xsl:param name="linenumbering.everyNth" select="1"/> the counter always counts 1 line more than the file actually contains. There is always an extra blank line at the end: ------------------------------- 1 print "Hello world!\n"; 2 ------------------------------- (Yes, I've checked for "invisible" blank lines at the end of my listings; there are none. And in HTML output, everything is ok.) ---------------------------------------------------------------------- >Comment By: Joachim Ziegler (quadruplex) Date: 2004-03-09 09:11 Message: Logged In: YES user_id=725814 I am using Stylesheets 1.62.4 and Saxon 6.5.3. Here is an example output for of a little C++-<programlisting> which has a redundant line #10: <fo:block space-before.minimum="0.8em" space-before.optimum="1em" space-before.maximum="1.2em" space-after.minimum="0.8em" space-after.optimum="1em" space-after.maximum="1.2em" font-family="monospace" text-align="start" wrap-option="no-wrap" white-space-collapse="false" linefeed-treatment="preserve"> 1 #include <LEDA/string.h> 2 #include <iostream> 3 4 int main() 5 { 6 leda::string msg = "Hello LEDA world!"; 7 8 std::cout << msg << "\n"; 9 } 10 </fo:block> ---------------------------------------------------------------------- Comment By: Jirka Kosek (kosek) Date: 2004-03-08 18:55 Message: Logged In: YES user_id=189932 I can't reproduce your error. Which version of stylesheets and what XSLT procesor do you use? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=894805&group_id=21935 |