Indentaton

main
Bob Mottram 2020-09-30 21:20:08 +01:00
parent 64ac0d2b69
commit c113ca088b
1 changed files with 6 additions and 4 deletions

View File

@ -4155,11 +4155,11 @@ def individualPostAsHtml(allowDownloads: bool,
nickname + '?options=' + postActor + \ nickname + '?options=' + postActor + \
';' + str(pageNumber) + ';' + avatarUrl + messageIdStr + '">\n' ';' + str(pageNumber) + ';' + avatarUrl + messageIdStr + '">\n'
avatarLink += \ avatarLink += \
' <img loading="lazy" title="' + \ ' <img loading="lazy" title="' + \
translate['Show options for this person'] + \ translate['Show options for this person'] + \
'" src="' + avatarUrl + '" ' + avatarPosition + '/></a>\n' '" src="' + avatarUrl + '" ' + avatarPosition + '/></a>\n'
avatarImageInPost = \ avatarImageInPost = \
' <div class="timeline-avatar">' + avatarLink.strip() + '</div>\n' ' <div class="timeline-avatar">' + avatarLink.strip() + '</div>\n'
# don't create new html within the bookmarks timeline # don't create new html within the bookmarks timeline
# it should already have been created for the inbox # it should already have been created for the inbox
@ -4615,6 +4615,7 @@ def individualPostAsHtml(allowDownloads: bool,
if announceAvatarUrl: if announceAvatarUrl:
idx = 'Show options for this person' idx = 'Show options for this person'
replyAvatarImageInPost = \ replyAvatarImageInPost = \
' ' \
'<div class="timeline-avatar-reply">\n' \ '<div class="timeline-avatar-reply">\n' \
'<a class="imageAnchor" ' + \ '<a class="imageAnchor" ' + \
'href="/users/' + nickname + \ 'href="/users/' + nickname + \
@ -4964,7 +4965,7 @@ def individualPostAsHtml(allowDownloads: bool,
contentStr = '' contentStr = ''
else: else:
if not isPatch: if not isPatch:
contentStr = '<div class="message">' + contentStr + '</div>\n' contentStr = ' <div class="message">' + contentStr + '</div>\n'
else: else:
contentStr = \ contentStr = \
'<div class="gitpatch"><pre><code>' + contentStr + \ '<div class="gitpatch"><pre><code>' + contentStr + \
@ -4972,7 +4973,7 @@ def individualPostAsHtml(allowDownloads: bool,
postHtml = '' postHtml = ''
if boxName != 'tlmedia': if boxName != 'tlmedia':
postHtml = '<div id="' + timelinePostBookmark + \ postHtml = ' <div id="' + timelinePostBookmark + \
'" class="' + containerClass + '">\n' '" class="' + containerClass + '">\n'
postHtml += avatarImageInPost postHtml += avatarImageInPost
postHtml += '<p class="post-title">' + titleStr + \ postHtml += '<p class="post-title">' + titleStr + \
@ -5627,6 +5628,7 @@ def htmlTimeline(defaultTimeline: str,
if boxName == 'tlmedia': if boxName == 'tlmedia':
tlStr += '</div>\n' tlStr += '</div>\n'
# end of column-center
tlStr += ' </div>\n' tlStr += ' </div>\n'
tlStr += ' <div class="column-right">\n' tlStr += ' <div class="column-right">\n'
tlStr += ' </div>\n' tlStr += ' </div>\n'