chiark
/
gitweb
/
~ian
/
mastodonochrome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b53fa3
)
Avoid ugly double blank line in media-only posts.
author
Simon Tatham
<anakin@pobox.com>
Sun, 3 Dec 2023 07:14:29 +0000
(07:14 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Sun, 3 Dec 2023 07:14:29 +0000
(07:14 +0000)
client.py
patch
|
blob
|
history
diff --git
a/client.py
b/client.py
index 1a051157cc65dd4b99649b556108e1fd8d2588a7..ac35589f49b19949c80db2f4653ec95315cf4d6d 100644
(file)
--- a/
client.py
+++ b/
client.py
@@
-140,6
+140,7
@@
class Status:
self.booster['display_name'])
yield text.BlankLine()
yield from self.content
- yield text.BlankLine()
+ if len(self.content) > 0:
+ yield text.BlankLine()
for media in self.media:
yield text.Media(media['url'], media.get('description'))