mirror of https://gitlab.com/bashrc2/epicyon
Line endings to more easily read html source
parent
3303840318
commit
0f95961eae
2
theme.py
2
theme.py
|
@ -438,7 +438,7 @@ def getTextModeBanner(baseDir: str) -> str:
|
||||||
with open(textModeBannerFilename, 'r') as fp:
|
with open(textModeBannerFilename, 'r') as fp:
|
||||||
bannerStr = fp.read()
|
bannerStr = fp.read()
|
||||||
if bannerStr:
|
if bannerStr:
|
||||||
return bannerStr.replace('\n', '<br>')
|
return bannerStr.replace('\n', '<br>\n')
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -892,26 +892,26 @@ def htmlKeyboardNavigation(banner: str, links: {},
|
||||||
followApprovals=False) -> str:
|
followApprovals=False) -> str:
|
||||||
"""Given a set of links return the html for keyboard navigation
|
"""Given a set of links return the html for keyboard navigation
|
||||||
"""
|
"""
|
||||||
htmlStr = '<div class="transparent"><ul>'
|
htmlStr = '<div class="transparent"><ul>\n'
|
||||||
|
|
||||||
if banner:
|
if banner:
|
||||||
htmlStr += '<pre aria-label="">' + banner + '<br><br></pre>'
|
htmlStr += '<pre aria-label="">' + banner + '\n<br><br></pre>\n'
|
||||||
|
|
||||||
if subHeading:
|
if subHeading:
|
||||||
htmlStr += '<strong><label class="transparent">' + \
|
htmlStr += '<strong><label class="transparent">' + \
|
||||||
subHeading + '</label></strong><br>'
|
subHeading + '</label></strong><br>\n'
|
||||||
|
|
||||||
# show new follower approvals
|
# show new follower approvals
|
||||||
if usersPath and translate and followApprovals:
|
if usersPath and translate and followApprovals:
|
||||||
htmlStr += '<strong><label class="transparent">' + \
|
htmlStr += '<strong><label class="transparent">' + \
|
||||||
'<a href="' + usersPath + '/followers#timeline">' + \
|
'<a href="' + usersPath + '/followers#timeline">' + \
|
||||||
translate['Approve follow requests'] + '</a>' + \
|
translate['Approve follow requests'] + '</a>' + \
|
||||||
'</label></strong><br><br>'
|
'</label></strong><br><br>\n'
|
||||||
|
|
||||||
# show the list of links
|
# show the list of links
|
||||||
for title, url in links.items():
|
for title, url in links.items():
|
||||||
htmlStr += '<li><label class="transparent">' + \
|
htmlStr += '<li><label class="transparent">' + \
|
||||||
'<a href="' + str(url) + '">' + \
|
'<a href="' + str(url) + '">' + \
|
||||||
str(title) + '</a></label></li>'
|
str(title) + '</a></label></li>\n'
|
||||||
htmlStr += '</ul></div>'
|
htmlStr += '</ul></div>\n'
|
||||||
return htmlStr
|
return htmlStr
|
||||||
|
|
Loading…
Reference in New Issue