[cairo-commit] src/cairo-pdf-operators.c

Adrian Johnson ajohnson at kemper.freedesktop.org
Sun Oct 12 03:42:39 PDT 2014


 src/cairo-pdf-operators.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ab2a7b61d59258b71e1c3256edf2f42ea6cc1eb2
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Sun Oct 12 21:04:37 2014 +1030

    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.

diff --git a/src/cairo-pdf-operators.c b/src/cairo-pdf-operators.c
index c2f6bcf..48ae3a6 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;
     }
 


More information about the cairo-commit mailing list