diff --git a/httpserver.cpp b/httpserver.cpp index fccd319..8a9b62e 100644 --- a/httpserver.cpp +++ b/httpserver.cpp @@ -104,8 +104,6 @@ std::pair HttpServer::splitUserNameAndMessage(const QString &r } text.replace(rawLink, convertToClickableLink(rawLink)); } - if (linksFound) text.replace(" ", ""); // delete whitespace in links end - // long lines int space = 0; bool nbTag = false; // For safe HTML tags like a ⁢ via ! @@ -135,6 +133,7 @@ std::pair HttpServer::splitUserNameAndMessage(const QString &r space = i; } } + if (linksFound) text.replace(" ", ""); // delete whitespace in links end result.first = nick; result.second = text; diff --git a/httpserver.h b/httpserver.h index b33c973..9c7e07b 100644 --- a/httpserver.h +++ b/httpserver.h @@ -189,7 +189,7 @@ Content-Length: {{SIZE}}\r\n\r\n"; \n"; const QString HTML_PAYLOAD_ADDITIONAL_ARROWS = "\ - \n"; + \n"; const QString HTML_PAYLOAD_ADDITIONAL_NOTIFY = "\
\n";