X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=src%2Fhttp%2Fpages%2Fforumcreatepostpage.cpp;fp=src%2Fhttp%2Fpages%2Fforumcreatepostpage.cpp;h=4fd81c901a1ac8c46fb4df30f481203bb6f50944;hp=18961439711b8267ced6b0e707577d1825bbf32b;hb=56f67ecca96efc7b72d03c95c8c42cfb66e31468;hpb=f2545574af789b63fc655decfe31a3d9f1b30504 diff --git a/src/http/pages/forumcreatepostpage.cpp b/src/http/pages/forumcreatepostpage.cpp index 1896143..4fd81c9 100644 --- a/src/http/pages/forumcreatepostpage.cpp +++ b/src/http/pages/forumcreatepostpage.cpp @@ -1,6 +1,7 @@ #include "../../../include/http/pages/forumcreatepostpage.h" #include "../../../include/stringfunctions.h" #include "../../../include/message.h" +#include "../../../include/unicode/unicodeformatter.h" #ifdef XMEM #include @@ -61,6 +62,7 @@ const std::string ForumCreatePostPage::GeneratePage(const std::string &method, c { body=(*queryvars.find("body")).second; body=StringFunctions::Replace(body,"\r\n","\n"); + UnicodeFormatter::LineWrap(body,80,">",body); } else { @@ -148,6 +150,7 @@ const std::string ForumCreatePostPage::GeneratePage(const std::string &method, c } body+="\n"; } + } } }