Indentation

main
Bob Mottram 2020-09-30 21:57:07 +01:00
parent 7a7c96eac7
commit 07b7231031
1 changed files with 17 additions and 11 deletions

View File

@ -4544,7 +4544,7 @@ def individualPostAsHtml(allowDownloads: bool,
attributedTo = postJsonObject['object']['attributedTo'] attributedTo = postJsonObject['object']['attributedTo']
if attributedTo.startswith(postActor): if attributedTo.startswith(postActor):
titleStr += \ titleStr += \
' <img loading="lazy" title="' + \ ' <img loading="lazy" title="' + \
translate['announces'] + \ translate['announces'] + \
'" alt="' + translate['announces'] + \ '" alt="' + translate['announces'] + \
'" src="/' + iconsDir + \ '" src="/' + iconsDir + \
@ -4594,7 +4594,8 @@ def individualPostAsHtml(allowDownloads: bool,
translate['announces'] + '" alt="' + \ translate['announces'] + '" alt="' + \
translate['announces'] + '" src="/' + \ translate['announces'] + '" src="/' + \
iconsDir + '/repeat_inactive.png" ' + \ iconsDir + '/repeat_inactive.png" ' + \
'class="announceOrReply"/> <a href="' + \ 'class="announceOrReply"/>\n' + \
' <a href="' + \
postJsonObject['object']['id'] + '">' + \ postJsonObject['object']['id'] + '">' + \
announceDisplayName + '</a>\n' announceDisplayName + '</a>\n'
# show avatar of person replied to # show avatar of person replied to
@ -4635,7 +4636,8 @@ def individualPostAsHtml(allowDownloads: bool,
'" alt="' + translate['announces'] + \ '" alt="' + translate['announces'] + \
'" src="/' + iconsDir + \ '" src="/' + iconsDir + \
'/repeat_inactive.png" ' + \ '/repeat_inactive.png" ' + \
'class="announceOrReply"/> <a href="' + \ 'class="announceOrReply"/>\n' + \
' <a href="' + \
postJsonObject['object']['id'] + '">@' + \ postJsonObject['object']['id'] + '">@' + \
announceNickname + '@' + \ announceNickname + '@' + \
announceDomain + '</a>\n' announceDomain + '</a>\n'
@ -4645,7 +4647,8 @@ def individualPostAsHtml(allowDownloads: bool,
translate['announces'] + '" alt="' + \ translate['announces'] + '" alt="' + \
translate['announces'] + '" src="/' + iconsDir + \ translate['announces'] + '" src="/' + iconsDir + \
'/repeat_inactive.png" ' + \ '/repeat_inactive.png" ' + \
'class="announceOrReply"/> <a href="' + \ 'class="announceOrReply"/>\n' + \
' <a href="' + \
postJsonObject['object']['id'] + \ postJsonObject['object']['id'] + \
'">@unattributed</a>\n' '">@unattributed</a>\n'
else: else:
@ -4654,7 +4657,8 @@ def individualPostAsHtml(allowDownloads: bool,
'" alt="' + translate['announces'] + \ '" alt="' + translate['announces'] + \
'" src="/' + iconsDir + \ '" src="/' + iconsDir + \
'/repeat_inactive.png" ' + \ '/repeat_inactive.png" ' + \
'class="announceOrReply"/> <a href="' + \ 'class="announceOrReply"/>\n' + \
' <a href="' + \
postJsonObject['object']['id'] + '">@unattributed</a>\n' postJsonObject['object']['id'] + '">@unattributed</a>\n'
else: else:
if postJsonObject['object'].get('inReplyTo'): if postJsonObject['object'].get('inReplyTo'):
@ -4717,7 +4721,8 @@ def individualPostAsHtml(allowDownloads: bool,
translate['replying to'] + \ translate['replying to'] + \
'" src="/' + \ '" src="/' + \
iconsDir + '/reply.png" ' + \ iconsDir + '/reply.png" ' + \
'class="announceOrReply"/> ' + \ 'class="announceOrReply"/>\n' + \
' ' + \
'<a href="' + inReplyTo + \ '<a href="' + inReplyTo + \
'">' + replyDisplayName + '</a>\n' '">' + replyDisplayName + '</a>\n'
@ -4774,8 +4779,8 @@ def individualPostAsHtml(allowDownloads: bool,
translate['replying to'] + \ translate['replying to'] + \
'" src="/' + \ '" src="/' + \
iconsDir + '/reply.png" ' + \ iconsDir + '/reply.png" ' + \
'class="announceOrReply"/> ' + \ 'class="announceOrReply"/>\n' + \
'<a href="' + \ ' <a href="' + \
inReplyTo + '">@' + \ inReplyTo + '">@' + \
replyNickname + '@' + \ replyNickname + '@' + \
replyDomain + '</a>\n' replyDomain + '</a>\n'
@ -4787,8 +4792,8 @@ def individualPostAsHtml(allowDownloads: bool,
translate['replying to'] + \ translate['replying to'] + \
'" src="/' + \ '" src="/' + \
iconsDir + \ iconsDir + \
'/reply.png" class="announceOrReply"/> ' + \ '/reply.png" class="announceOrReply"/>\n' + \
'<a href="' + \ ' <a href="' + \
postJsonObject['object']['inReplyTo'] + \ postJsonObject['object']['inReplyTo'] + \
'">@unknown</a>\n' '">@unknown</a>\n'
else: else:
@ -4806,7 +4811,8 @@ def individualPostAsHtml(allowDownloads: bool,
'" alt="' + translate['replying to'] + \ '" alt="' + translate['replying to'] + \
'" src="/' + \ '" src="/' + \
iconsDir + '/reply.png" ' + \ iconsDir + '/reply.png" ' + \
'class="announceOrReply"/> <a href="' + \ 'class="announceOrReply"/>\n' + \
' <a href="' + \
postJsonObject['object']['inReplyTo'] + \ postJsonObject['object']['inReplyTo'] + \
'">' + postDomain + '</a>\n' '">' + postDomain + '</a>\n'