Revision: 7063
Author: victormote
Date: 2006-04-25 17:27:11 -0700 (Tue, 25 Apr 2006)
ViewCVS: http://svn.sourceforge.net/foray/?rev=7063&view=rev
Log Message:
-----------
Change padding character to avoid problems with text editors.
Modified Paths:
--------------
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFObject.java
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFObject.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFObject.java 2006-04-26 00:16:45 UTC (rev 7062)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFObject.java 2006-04-26 00:27:11 UTC (rev 7063)
@@ -42,14 +42,18 @@
/** The String that should be used to end a line in the PDF document. */
public static final String EOL = "\n";
- /** The String that should be used to end a cross-reference line in the
- * PDF document. The carriage-return is counter-intuitive but required.
+ /**
+ * The String that should be used to end a cross-reference line in the
+ * PDF document.
* According to the PDF Reference, 3rd Edition, Section 3.4.3, each
* cross-reference entry must be exactly 20 bytes long, including the
- * end-of-line character(s). If newline is used for end-of-line, then an
- * extra character must be padded. According to the Reference, that
- * character must be either a space or a carriage-return. */
- public static final String XREF_EOL = "\r\n";
+ * end-of-line character(s).
+ * If a 1-character eol is used (such as a newline), then an extra character
+ * must be padded.
+ * According to the Reference, that character must be a space.
+ * However, a space at the end of a line is often removed by editors, so we
+ * use a hyphen instead. */
+ public static final String XREF_EOL = "-\n";
/** The String that should be used to end a line in log messages. */
public static final String MSG_EOL = "\n";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|