r17413 by jghali - text import : add support for new unicode line separator (0x2028) and paragraph separator (0x2029)
scribus-commit
scribus-commit at lists.scribus.net
Tue Apr 3 20:25:22 UTC 2012
Author: jghali
Date: Tue Apr 3 20:25:22 2012
New Revision: 17413
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17413
Log:
text import : add support for new unicode line separator (0x2028) and paragraph separator (0x2029)
Modified:
trunk/Scribus/scribus/gtaction.cpp
Modified: trunk/Scribus/scribus/gtaction.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17413&path=/trunk/Scribus/scribus/gtaction.cpp
==============================================================================
--- trunk/Scribus/scribus/gtaction.cpp (original)
+++ trunk/Scribus/scribus/gtaction.cpp Tue Apr 3 20:25:22 2012
@@ -133,6 +133,10 @@
QChar ch = text.at(a);
if ((ch == ch10) || (ch == ch5))
ch = ch13;
+ else if (ch.unicode() == 0x2028)
+ ch = SpecialChars::LINEBREAK;
+ else if (ch.unicode() == 0x2029)
+ ch = SpecialChars::PARSEP;
int pos = it->itemText.length();
it->itemText.insertChars(pos, QString(ch));
More information about the scribus-commit
mailing list