Merge pull request #3270 from Chocobo1/info_box

Reorder layout in information box
This commit is contained in:
sledgehammer999
2015-06-28 13:45:25 +03:00
3 changed files with 137 additions and 42 deletions

View File

@@ -467,6 +467,8 @@ QString Utils::Misc::parseHtmlLinks(const QString &raw_text)
static QRegExp reNoScheme("<a\\s+href=\"(?!http(s?))([a-zA-Z0-9\\?%=&/_\\.-:#]+)\\s*\">");
result.replace(reNoScheme, "<a href=\"http://\\1\">");
// to preserve plain text formatting
result = "<p style=\"white-space: pre-wrap;\">" + result + "</p>";
return result;
}