version 0.3.25
[fms.git] / src / http / pages / forumcreatepostpage.cpp
index 1896143..4fd81c9 100644 (file)
@@ -1,6 +1,7 @@
 #include "../../../include/http/pages/forumcreatepostpage.h"\r
 #include "../../../include/stringfunctions.h"\r
 #include "../../../include/message.h"\r
+#include "../../../include/unicode/unicodeformatter.h"\r
 \r
 #ifdef XMEM\r
        #include <xmem.h>\r
@@ -61,6 +62,7 @@ const std::string ForumCreatePostPage::GeneratePage(const std::string &method, c
                {\r
                        body=(*queryvars.find("body")).second;\r
                        body=StringFunctions::Replace(body,"\r\n","\n");\r
+                       UnicodeFormatter::LineWrap(body,80,">",body);\r
                }\r
                else\r
                {\r
@@ -148,6 +150,7 @@ const std::string ForumCreatePostPage::GeneratePage(const std::string &method, c
                                        }\r
                                        body+="\n";\r
                                }\r
+\r
                        }\r
                }\r
        }\r