diff options
author | Jeremias Maerki <jeremias@apache.org> | 2004-06-22 18:42:27 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2004-06-22 18:42:27 +0000 |
commit | e010763a75610e265e97c448557ad6159a0e0a64 (patch) | |
tree | 6a12b0250377b07ea500da35cff11a7fb1e9620f /src/java/org/apache/fop/render | |
parent | 92df5d3b4839a699d036940d3b9b3c0e797deb8b (diff) | |
download | xmlgraphics-fop-e010763a75610e265e97c448557ad6159a0e0a64.tar.gz xmlgraphics-fop-e010763a75610e265e97c448557ad6159a0e0a64.zip |
Disable check for maximum line length because of a problem reported in FOP 0.20.5.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197742 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render')
-rw-r--r-- | src/java/org/apache/fop/render/ps/PSGenerator.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/render/ps/PSGenerator.java b/src/java/org/apache/fop/render/ps/PSGenerator.java index 4a64f626c..e69789cd9 100644 --- a/src/java/org/apache/fop/render/ps/PSGenerator.java +++ b/src/java/org/apache/fop/render/ps/PSGenerator.java @@ -113,9 +113,10 @@ public class PSGenerator { * @exception IOException In case of an I/O problem */ public void write(String cmd) throws IOException { + /* @todo Check disabled until clarification. if (cmd.length() > 255) { throw new RuntimeException("PostScript command exceeded limit of 255 characters"); - } + } */ out.write(cmd.getBytes("US-ASCII")); } @@ -130,6 +131,13 @@ public class PSGenerator { newLine(); } + /** + * Writes a comment to the stream and ends the line. Output of comments can + * be disabled to reduce the size of the generated file. + * + * @param comment comment to write + * @exception IOException In case of an I/O problem + */ public void commentln(String comment) throws IOException { if (this.commentsEnabled) { writeln(comment); |