Aard: fix outstanding elements (issue #309)

This commit is contained in:
Abs62 2013-05-11 16:37:06 +04:00
parent 8b23f07cdc
commit 8a1800ca33

View file

@ -370,6 +370,9 @@ string AardDictionary::convert( const string & in )
text.replace( QRegExp( "<\\s*a\\s*href\\s*=\\s*[\\\"'](w:|s:){0,1}([^#](?!ttp://)[^\\\"']*)(.)" ),
"<a href=\"bword:\\2\"");
// Fix outstanding elements
text += "<br style=\"clear:both;\" />";
return text.toUtf8().data();
}