From ab2a7b61d59258b71e1c3256edf2f42ea6cc1eb2 Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Sun, 12 Oct 2014 21:04:37 +1030 Subject: 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. --- src/cairo-pdf-operators.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3