summaryrefslogtreecommitdiff
path: root/src/backend/filters/bt_plainhtml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/filters/bt_plainhtml.cpp')
-rw-r--r--src/backend/filters/bt_plainhtml.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/backend/filters/bt_plainhtml.cpp b/src/backend/filters/bt_plainhtml.cpp
index d26d8ed..c70db79 100644
--- a/src/backend/filters/bt_plainhtml.cpp
+++ b/src/backend/filters/bt_plainhtml.cpp
@@ -7,7 +7,8 @@
*
**********/
-#include "bt_plainhtml.h"
+#include "backend/filters/bt_plainhtml.h"
+
Filters::BT_PLAINHTML::BT_PLAINHTML() : sword::SWFilter() {
}
@@ -32,7 +33,7 @@ char Filters::BT_PLAINHTML::processText(sword::SWBuf& text, const sword::SWKey*
continue;
}
else if ((*from == '\n')) { // only one new line
- text += "<BR>";
+ text += "<br/>";
continue;
}
else if (*from == '<') {
@@ -48,15 +49,15 @@ char Filters::BT_PLAINHTML::processText(sword::SWBuf& text, const sword::SWKey*
continue;
}
else if (*from == '{') { //footnote start
- text += "<FONT COLOR=\"#800000\"><SMALL> ("; /// \bug Possible color conflict
+ text += "<font color=\"#800000\"><small> ("; /// \bug Possible color conflict
continue;
}
else if (*from == '}') { //footnote end
- text += ") </SMALL></FONT>";
+ text += ") </small></font>";
continue;
}
else if ((*from == ' ') && (count > 5000)) {
- text += "<WBR>";
+ text += "<wbr/>";
count = 0;
continue;
}