mirror of https://gitlab.com/bashrc2/epicyon
Handle newlines
parent
5fa549f011
commit
7536c12761
|
@ -80,6 +80,7 @@ def _update_import_following(base_dir: str,
|
||||||
continue
|
continue
|
||||||
following_handle = following_nickname + '@' + following_domain
|
following_handle = following_nickname + '@' + following_domain
|
||||||
if notes:
|
if notes:
|
||||||
|
notes = notes.replace('<br>', '\n')
|
||||||
person_notes_filename = \
|
person_notes_filename = \
|
||||||
acct_dir(base_dir, nickname, domain) + \
|
acct_dir(base_dir, nickname, domain) + \
|
||||||
'/notes/' + following_handle + '.txt'
|
'/notes/' + following_handle + '.txt'
|
||||||
|
|
|
@ -123,7 +123,7 @@ def csv_following_list(following_filename: str,
|
||||||
encoding='utf-8') as fp_notes:
|
encoding='utf-8') as fp_notes:
|
||||||
person_notes = fp_notes.read()
|
person_notes = fp_notes.read()
|
||||||
person_notes = person_notes.replace(',', ' ')
|
person_notes = person_notes.replace(',', ' ')
|
||||||
person_notes = person_notes.replace('\n', ' ')
|
person_notes = person_notes.replace('\n', '<br>')
|
||||||
person_notes = person_notes.replace(' ', ' ')
|
person_notes = person_notes.replace(' ', ' ')
|
||||||
following_list_csv += person_notes
|
following_list_csv += person_notes
|
||||||
msg = 'Account address,Show boosts,Notes\n' + following_list_csv
|
msg = 'Account address,Show boosts,Notes\n' + following_list_csv
|
||||||
|
|
Loading…
Reference in New Issue