Handle newlines

merge-requests/30/head
Bob Mottram 2022-11-07 18:44:17 +00:00
parent 5fa549f011
commit 7536c12761
2 changed files with 2 additions and 1 deletions

View File

@ -80,6 +80,7 @@ def _update_import_following(base_dir: str,
continue
following_handle = following_nickname + '@' + following_domain
if notes:
notes = notes.replace('<br>', '\n')
person_notes_filename = \
acct_dir(base_dir, nickname, domain) + \
'/notes/' + following_handle + '.txt'

View File

@ -123,7 +123,7 @@ def csv_following_list(following_filename: str,
encoding='utf-8') as fp_notes:
person_notes = fp_notes.read()
person_notes = person_notes.replace(',', ' ')
person_notes = person_notes.replace('\n', ' ')
person_notes = person_notes.replace('\n', '<br>')
person_notes = person_notes.replace(' ', ' ')
following_list_csv += person_notes
msg = 'Account address,Show boosts,Notes\n' + following_list_csv