Skip to content

Commit f28a3df

Browse files
authored
| 𝐘ū𝐀𝐒 β€’ 𝐁π₯𝐚𝐜𝐀 𝐊𝐧𝐒𝐠𝐑𝐭𝐬 𝐔𝐧𝐒𝐨𝐧 |
1 parent c4efbc7 commit f28a3df

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
def make_short(description, thumb, mal_url):
2+
if len(description) < 750:
3+
description += f"\n[R]({thumb})[ead more!]({mal_url})"
4+
return description
5+
else:
6+
description = description[:751]
7+
description += f"[...]({thumb})\n[Read more!]({mal_url})"
8+
return description

0 commit comments

Comments
Β (0)