Check for headers

main
Bob Mottram 2020-10-01 23:48:10 +01:00
parent 9d89be69d9
commit 11f9fe96e2
1 changed files with 7 additions and 1 deletions

View File

@ -5171,12 +5171,18 @@ def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str,
if linksList: if linksList:
for lineStr in linksList: for lineStr in linksList:
if ' ' not in lineStr: if ' ' not in lineStr:
continue if '#' not in lineStr:
if '*' not in lineStr:
continue
lineStr = lineStr.strip() lineStr = lineStr.strip()
words = lineStr.split(' ') words = lineStr.split(' ')
# get the link # get the link
linkStr = None linkStr = None
for word in words: for word in words:
if word == '#':
continue
if word == '*':
continue
if '://' in word or word.endswith('.html'): if '://' in word or word.endswith('.html'):
linkStr = word linkStr = word
break break