From 33f08e93132a53bf14f41f5f1e567eeea832b336 Mon Sep 17 00:00:00 2001
From: tpearson
": we don't want that + // convertFromPlainText() replace "\n\n" by "
\n": we don't want that TQString htmlString = TQStyleSheet::convertFromPlainText(text, TQStyleSheetItem::WhiteSpaceNormal); - return htmlString.tqreplace("
\n", "", "\n"); // Don't replace first and last tags + return htmlString.replace("
\n", "", "\n"); // Don't replace first and last tags } TQString Tools::textToHTMLWithoutP(const TQString &text) @@ -88,7 +88,7 @@ TQString Tools::htmlToParagraph(const TQString &html) // Remove the start tag, all the
and the start // Because can contain style="..." parameter, we transform it to - int pos = result.tqfind("\n", each tag can be separated by space characters (%s) // "" can be omitted (eg. if the HTML doesn't contain paragraph but tables), as well as "" (optinal) - pos = result.tqfind(TQRegExp("(?:(?:[\\s\\n\\r\\t]*)*[\\s\\n\\r\\t]*)*", false)); // Case unsensitive + pos = result.find(TQRegExp("(?:(?:[\\s\\n\\r\\t]*)*