1
/***************************************************************************
2
rwphtml.cpp - description
4
begin : Thu Jun 24 1999
5
copyright : (C) 1999 by Torsten Uhlmann
6
email : TUhlmann@gmx.de
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
18
#include <plainhtml.h>
22
PLAINHTML::PLAINHTML()
27
char PLAINHTML::processText(SWBuf &text, const SWKey *key, const SWModule *module)
32
const char *from = orig.c_str();
33
for (text = ""; *from; from++)
35
if ((*from == '\n') && (from[1] == '\n')) // two newlinea are a paragraph
41
if ((*from == '\n')) // && (from[1] != '\n')) // only one new line
48
if (*from == '{') { //footnote start
49
text += "<FONT COLOR=\"#80000\"><SMALL> (";
52
else if (*from == '}') //footnote end
54
text += ") </SMALL></FONT>";
57
else if ((*from == ' ') && (count > 5000))