Changeset View
Changeset View
Standalone View
Standalone View
src/catalog/gettext/gettextexport.cpp
Show First 20 Lines • Show All 233 Lines • ▼ Show 20 Line(s) | 231 | #endif | |||
---|---|---|---|---|---|
234 | { | 234 | { | ||
235 | // No wrapping (like Gettext's --no.wrap or -w0 ) | 235 | // No wrapping (like Gettext's --no.wrap or -w0 ) | ||
236 | // we need to remove the \n characters, as they are extra characters | 236 | // we need to remove the \n characters, as they are extra characters | ||
237 | QString realText( text ); | 237 | QString realText( text ); | ||
238 | realText.remove( '\n' ); | 238 | realText.remove( '\n' ); | ||
239 | stream << keyword << " \"" << realText << "\"\n"; | 239 | stream << keyword << " \"" << realText << "\"\n"; | ||
240 | return; | 240 | return; | ||
241 | } | 241 | } | ||
242 | else if ( m_wrapWidth < 0 ) | 242 | else if ( m_wrapWidth <= 3 ) | ||
243 | { | 243 | { | ||
244 | // No change in wrapping | 244 | // No change in wrapping | ||
245 | QStringList list = text.split( '\n'); | 245 | QStringList list = text.split( '\n'); | ||
246 | if (list.count()>1 || startedWithEmptyLine /* || keyword.length()+3+text.length()>=80*/) | 246 | if (list.count()>1 || startedWithEmptyLine /* || keyword.length()+3+text.length()>=80*/) | ||
247 | list.prepend(QString()); | 247 | list.prepend(QString()); | ||
248 | 248 | | |||
249 | stream << keyword << QStringLiteral(" "); | 249 | stream << keyword << QStringLiteral(" "); | ||
250 | QStringList::const_iterator it; | 250 | QStringList::const_iterator it; | ||
▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines |