mirror of https://gitlab.com/bashrc2/epicyon
parent
7ca1a5aee9
commit
af2baff093
|
@ -138,10 +138,14 @@ def preparePostFromHtmlCache(nickname: str, postHtml: str, boxName: str,
|
||||||
for keyIndex in range(10):
|
for keyIndex in range(10):
|
||||||
keyStr = 'accesskey="' + str(keyIndex) + '"'
|
keyStr = 'accesskey="' + str(keyIndex) + '"'
|
||||||
if keyStr in withPageNumber:
|
if keyStr in withPageNumber:
|
||||||
withPageNumber = \
|
if accessKeyIndex == 0 or accessKeyIndex > 9:
|
||||||
withPageNumber.replace(keyStr,
|
withPageNumber = \
|
||||||
'accesskey="' +
|
withPageNumber.replace(keyStr, '')
|
||||||
str(accessKeyIndex) + '"')
|
else:
|
||||||
|
withPageNumber = \
|
||||||
|
withPageNumber.replace(keyStr,
|
||||||
|
'accesskey="' +
|
||||||
|
str(accessKeyIndex) + '"')
|
||||||
break
|
break
|
||||||
return prepareHtmlPostNickname(nickname, withPageNumber)
|
return prepareHtmlPostNickname(nickname, withPageNumber)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue