diff --git a/webinterface.py b/webinterface.py
index e7004695d..c91f0aa64 100644
--- a/webinterface.py
+++ b/webinterface.py
@@ -1526,9 +1526,9 @@ def htmlProfile(defaultTimeline: str, \
donateSection='
\n'
donateSection+='
\n'
if donateUrl:
- donateSection+=' \n'
+ donateSection+='
\n'
if xmppAddress:
- donateSection+='
XMPP: '+xmppAddress+'\n'
+ donateSection+='XMPP: '+xmppAddress+'
\n'
donateSection+=' \n'
donateSection+='
\n'