summaryrefslogtreecommitdiff
path: root/src/cairo-pdf-operators.c
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2014-10-12 21:04:37 +1030
committerAdrian Johnson <ajohnson@redneon.com>2014-10-12 21:06:45 +1030
commitab2a7b61d59258b71e1c3256edf2f42ea6cc1eb2 (patch)
tree8174155f6d91fa6eefe2340b4cac29498d73cb1a /src/cairo-pdf-operators.c
parent45934f69cd158b7bb5632f5e4334a156795147f4 (diff)
pdf: don't use '\' to split strings across multiple lines
The PDF interpreter in my printer does not handle this correctly. So instead we add the string delimiters '(' and ')' to each line.
Diffstat (limited to 'src/cairo-pdf-operators.c')
-rw-r--r--src/cairo-pdf-operators.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-pdf-operators.c b/src/cairo-pdf-operators.c
index c2f6bcf4c..48ae3a675 100644
--- a/src/cairo-pdf-operators.c
+++ b/src/cairo-pdf-operators.c
@@ -284,7 +284,7 @@ _word_wrap_stream_count_string_up_to (word_wrap_stream_t *stream,
_cairo_output_stream_write (stream->output, data, count);
if (newline) {
- _cairo_output_stream_printf (stream->output, "\\\n");
+ _cairo_output_stream_printf (stream->output, ")\n(");
stream->column = 0;
}