main
Bob Mottram 2021-04-22 17:06:32 +01:00
parent a8063e1c0d
commit 7ca1a5aee9
1 changed files with 4 additions and 8 deletions

View File

@ -138,14 +138,10 @@ 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:
if accessKeyIndex == 0 or accessKeyIndex > 9: withPageNumber = \
withPageNumber = \ withPageNumber.replace(keyStr,
withPageNumber.replace(keyStr, '') 'accesskey="' +
else: str(accessKeyIndex) + '"')
withPageNumber = \
withPageNumber.replace(keyStr,
'accesskey="' +
str(accessKeyIndex) + '"')
break break
return prepareHtmlPostNickname(nickname, withPageNumber) return prepareHtmlPostNickname(nickname, withPageNumber)