diff --git a/webapp_column_left.py b/webapp_column_left.py
index b4c64cb35..66e1f3d38 100644
--- a/webapp_column_left.py
+++ b/webapp_column_left.py
@@ -124,6 +124,9 @@ def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str,
# if showHeaderImage:
# htmlStr += '
'
+ # flag used not to show the first separator
+ firstSeparatorAdded = False
+
linksFilename = baseDir + '/accounts/links.txt'
linksFileContainsEntries = False
if os.path.isfile(linksFilename):
@@ -163,7 +166,9 @@ def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str,
else:
if lineStr.startswith('#') or lineStr.startswith('*'):
lineStr = lineStr[1:].strip()
- htmlStr += separatorStr
+ if firstSeparatorAdded:
+ htmlStr += separatorStr
+ firstSeparatorAdded = True
htmlStr += \
'
' + lineStr + '
\n' linksFileContainsEntries = True - htmlStr += separatorStr + if firstSeparatorAdded: + htmlStr += separatorStr htmlStr += \ ''