diff options
Diffstat (limited to 'src/parsers/show.cpp')
-rw-r--r-- | src/parsers/show.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parsers/show.cpp b/src/parsers/show.cpp index 2d7b0c4..84ace04 100644 --- a/src/parsers/show.cpp +++ b/src/parsers/show.cpp @@ -22,8 +22,8 @@ static const TQString // Converts the special chars in orig into its HTML equivalents static TQString text2html(const TQString& orig) { TQString ret(orig); - ret = ret.tqreplace("<(?!a href)", "<"); - //ret = ret.tqreplace( TQRegExp("\n"), "<br />\n"); + ret = ret.replace("<(?!a href)", "<"); + //ret = ret.replace( TQRegExp("\n"), "<br />\n"); return ret; } @@ -185,7 +185,7 @@ void Show::operator() (AptProtocol* slave, const TQString& tag, const TQString& new_paragraph = false; } } - buffer += text2html(TQString(value).tqreplace(TQRegExp("(http://\\S+)"),TQString("<a href=\"\\1\">\\1</a>"))); + buffer += text2html(TQString(value).replace(TQRegExp("(http://\\S+)"),TQString("<a href=\"\\1\">\\1</a>"))); } else if (tag == "package_link") buffer += "<a href=\"" + slave->buildURL("show", value).htmlURL() + "\">" + value + "</a>"; |