r17441 by jghali - pdf export : small fix to PDFEncode function

scribus-commit scribus-commit at lists.scribus.net
Sat Apr 14 11:13:41 UTC 2012


Author: jghali
Date: Sat Apr 14 11:13:41 2012
New Revision: 17441

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17441
Log:
pdf export : small fix to PDFEncode function

Modified:
    trunk/Scribus/scribus/pdflib_core.cpp

Modified: trunk/Scribus/scribus/pdflib_core.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17441&path=/trunk/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- trunk/Scribus/scribus/pdflib_core.cpp (original)
+++ trunk/Scribus/scribus/pdflib_core.cpp Sat Apr 14 11:13:41 2012
@@ -296,7 +296,10 @@
 		if ((cc == '(') || (cc == ')') || (cc == '\\'))
 			tmp += '\\';
 		else if ((cc == '\r') || (cc == '\n'))
-			tmp += "\\n";
+		{
+			tmp += (cc == '\r') ? "\\r" : "\\n";
+			continue;
+		}
 		tmp += cc;
 	}
 	return tmp;




More information about the scribus-commit mailing list