Skip to content

Commit a50269e

Browse files
MaximPlusovbundolee
authored andcommitted
Auto-tagging. Fix PDFStreamWriter
1 parent 88ed2cb commit a50269e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

java/opendataloader-pdf-core/src/main/java/org/opendataloader/pdf/processors/PDFStreamWriter.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,12 @@ private void write(Object rawToken, PrintWriter printWriter, OutputStream out) t
6161
if (currentByte == 40 || currentByte == 41 || currentByte == 92) {
6262
out.write('\\');
6363
}
64-
out.write(currentByte);
64+
if (currentByte == 13) {
65+
out.write('\\');
66+
out.write('r');
67+
} else {
68+
out.write(currentByte);
69+
}
6570
}
6671
out.write(")".getBytes());
6772
out.write(" ".getBytes());

0 commit comments

Comments
 (0)