Line.
This commit is contained in:
parent
7029db6139
commit
62b248a7bc
1 changed files with 1 additions and 0 deletions
|
@ -209,6 +209,7 @@ QString MessagePreviewer::prepareHtmlForMessage(const Message &message) {
|
||||||
QRegExp imgTagRegex("\\<img[^\\>]*src\\s*=\\s*\"([^\"]*)\"[^\\>]*\\>", Qt::CaseInsensitive);
|
QRegExp imgTagRegex("\\<img[^\\>]*src\\s*=\\s*\"([^\"]*)\"[^\\>]*\\>", Qt::CaseInsensitive);
|
||||||
|
|
||||||
imgTagRegex.setMinimal(true);
|
imgTagRegex.setMinimal(true);
|
||||||
|
|
||||||
while( (offset = imgTagRegex.indexIn(message.m_contents, offset)) != -1){
|
while( (offset = imgTagRegex.indexIn(message.m_contents, offset)) != -1){
|
||||||
offset += imgTagRegex.matchedLength();
|
offset += imgTagRegex.matchedLength();
|
||||||
html += QString("[%2] <a href=\"%1\">%1</a><br/>").arg(imgTagRegex.cap(1), tr("image"));
|
html += QString("[%2] <a href=\"%1\">%1</a><br/>").arg(imgTagRegex.cap(1), tr("image"));
|
||||||
|
|
Loading…
Add table
Reference in a new issue