PS backend - documentation bug - cairo_ps_surface_dsc_comment()
We have trouble inserting DSC comment with cairo_ps_surface_dsc_comment().
Inserting NL characters in DSC comment results in invalid PostScript output (see output line with single quote below):
%!PS-Adobe-3.0
%%Creator: cairo 1.12.18 (http://cairographics.org [^])
%%CreationDate: Thu Oct 10 10:44:22 2019
%%Pages: 1
%%DocumentData: Clean7Bit
%%LanguageLevel: 2
%%DocumentMedia: 297x211mm 842 598 0 () ()
%%Generator: Oregator V3.01.011
%%Title: LagerUmbuchkarte
%%Subject: exec LagerUmbuchkarte 'sma','KoeserTest','K#17181 2 Volumeneinheiten FROST
'
%%BoundingBox: 42 34 800 556
%%EndComments
%%BeginProlog
Documentation of cairo_ps_surface_dsc_comment() of cairo version 1.16.0 states:
The comment string should not have a trailing newline.
Please change to
The comment string must not have any embedded newlines.