From: <mz...@us...> - 2009-03-24 19:28:39
|
Revision: 8377 http://docbook.svn.sourceforge.net/docbook/?rev=8377&view=rev Author: mzjn Date: 2009-03-24 19:28:27 +0000 (Tue, 24 Mar 2009) Log Message: ----------- Added a fix that prevents output of extra blank line. Hopefully this closes bug #894805. Modified Paths: -------------- trunk/xsl-saxon/src/com/nwalsh/saxon/Text.java trunk/xsl-xalan/src/com/nwalsh/xalan/Text.java Modified: trunk/xsl-saxon/src/com/nwalsh/saxon/Text.java =================================================================== --- trunk/xsl-saxon/src/com/nwalsh/saxon/Text.java 2009-03-24 18:34:18 UTC (rev 8376) +++ trunk/xsl-saxon/src/com/nwalsh/saxon/Text.java 2009-03-24 19:28:27 UTC (rev 8377) @@ -186,7 +186,7 @@ nchars[nlen] = chars[i]; nlen++; } - out.writeContent(nchars, 0, nlen); + out.writeContent(nchars, 0, nlen-1); // handle look aheaded character if (carry != -1) out.writeContent(String.valueOf((char)carry)); carry = -1; Modified: trunk/xsl-xalan/src/com/nwalsh/xalan/Text.java =================================================================== --- trunk/xsl-xalan/src/com/nwalsh/xalan/Text.java 2009-03-24 18:34:18 UTC (rev 8376) +++ trunk/xsl-xalan/src/com/nwalsh/xalan/Text.java 2009-03-24 19:28:27 UTC (rev 8377) @@ -141,7 +141,7 @@ nlen++; } - text += String.valueOf(nchars, 0, nlen); + text += String.valueOf(nchars, 0, nlen-1); // handle look aheaded character if (carry != -1) text += String.valueOf((char)carry); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |