Text mode post separator

merge-requests/16/merge
Bob Mottram 2021-02-07 21:27:20 +00:00
parent 1e3ca2b622
commit d3390d59a7
1 changed files with 7 additions and 1 deletions

View File

@ -602,6 +602,12 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
translate['Page up'] + '"></a>\n' + \
' </center>\n'
# separator between posts which only appears in shell browsers
# such as Lynx and is not read by screen readers
textModeSeparator = \
'<div class="transparent">' + \
'<pre aria-label=""><hr></pre></div>'
# show the posts
itemCtr = 0
if timelineJson:
@ -670,7 +676,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
if currTlStr:
itemCtr += 1
tlStr += currTlStr
tlStr += textModeSeparator + currTlStr
if separatorStr:
tlStr += separatorStr
if boxName == 'tlmedia':