Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 22398 → Rev 22399

/trunk/Scribus/scribus/ui/bookmwin.cpp
149,9 → 149,10
const StoryText& itemText = item->itemText;
for (int i = 0; i < item->itemText.length(); ++i)
{
str = item->itemText.text(i);
if ((str == SpecialChars::PARSEP) || (str == SpecialChars::LINEBREAK) || (str == QChar(10)))
ch = item->itemText.text(i);
if (SpecialChars::isBreak(ch) || (ch == QChar(10)))
break;
str = QString(ch);
if (item->itemText.hasExpansionPoint(i))
{
str = item->expand(item->itemText.expansionPoint(i));
161,7 → 162,7
for (int j = 0; j < str.length(); ++j)
{
ch = str.at(j);
if (ch == SpecialChars::OLD_NBSPACE)
if (ch == SpecialChars::OLD_NBSPACE || ch == SpecialChars::OBJECT)
ch = ' ';
if ((ch == '(') || (ch == ')') || (ch == '\\'))
title += "\\";