1.1 --- a/texteditor.cpp Fri Jul 08 08:06:36 2005 +0000
1.2 +++ b/texteditor.cpp Sat Jul 23 10:26:29 2005 +0000
1.3 @@ -678,7 +678,7 @@
1.4 e->setText(t);
1.5 }
1.6
1.7 -QString TextEditor::textConvertToASCII(const QString &t)
1.8 +QString textConvertToASCII(const QString &t)
1.9 {
1.10 QString r=t;
1.11
1.12 @@ -687,8 +687,8 @@
1.13 re.setMinimal(true);
1.14 r.replace (re,"\n");
1.15
1.16 - // convert all "</p>" to "\n"
1.17 - re.setPattern ("/p");
1.18 + // convert all "<p>" to "\n"
1.19 + re.setPattern ("<p>");
1.20 r.replace (re,"\n");
1.21
1.22 // remove all remaining tags
1.23 @@ -702,6 +702,8 @@
1.24 r.replace (re,"<");
1.25 re.setPattern ("&");
1.26 r.replace (re,"&");
1.27 + re.setPattern (""");
1.28 + r.replace (re,"\"");
1.29 return r;
1.30 }
1.31