Skip to content

Commit 876ad23

Browse files
authored
Ensure there's a couple of line breaks after shortened text.
1 parent 1087d29 commit 876ad23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bestof.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ def shorten_text(text, deepseek_key):
6666
print('shorten...')
6767
try:
6868
t = deepseek.shorten(text, deepseek_key, max_len)
69-
t = f'{t} 🖍🤖'
69+
t = f'{t} 🖍🤖\n\n'
7070
return t
7171
except Exception as e:
7272
print(f'deepseek raised exception: {e}')
7373
return f'{text[:297]}...\n\n' # NB: three less than max_len
7474
else:
75-
return text
75+
return f'{text}\n\n'
7676

7777
def add_embed(p):
7878
if "embed_title" in p:

0 commit comments

Comments
 (0)