|
|
|
@ -337,8 +337,10 @@ QString Text::extractSanitizedText(int from, int to) const
@@ -337,8 +337,10 @@ QString Text::extractSanitizedText(int from, int to) const
|
|
|
|
|
return ""; |
|
|
|
|
|
|
|
|
|
QString txt; |
|
|
|
|
QTextBlock block = doc->firstBlock(); |
|
|
|
|
|
|
|
|
|
QTextBlock begin = doc->findBlock(from); |
|
|
|
|
QTextBlock end = doc->findBlock(to); |
|
|
|
|
for (QTextBlock block = begin; block != end.next() && block.isValid(); block = block.next()) { |
|
|
|
|
for (QTextBlock::Iterator itr = block.begin(); itr != block.end(); ++itr) { |
|
|
|
|
int pos = |
|
|
|
|
itr.fragment() |
|
|
|
@ -363,6 +365,11 @@ QString Text::extractSanitizedText(int from, int to) const
@@ -363,6 +365,11 @@ QString Text::extractSanitizedText(int from, int to) const
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
txt += '\n'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
txt.chop(1); |
|
|
|
|
|
|
|
|
|
return txt; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|