From dca56e99ec7979ffe98808bc37044ed826313c9d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 15 Nov 2020 18:42:37 +0000 Subject: [PATCH] Don't show first separator in left column --- webapp_column_left.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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' @@ -172,7 +177,8 @@ def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str, '

' + lineStr + '

\n' linksFileContainsEntries = True - htmlStr += separatorStr + if firstSeparatorAdded: + htmlStr += separatorStr htmlStr += \ '

' + \ translate['About this Instance'] + '

'