Skip to content

Commit

Permalink
Add dir=auto to p tags on convert
Browse files Browse the repository at this point in the history
  • Loading branch information
metemaddar committed Nov 5, 2024
1 parent b2cefe5 commit be9e2db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rednotebook/journal.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,11 @@ def convert(self, text, target, headers=None, options=None, use_gtk_theme=False)
)
options["bgcolor"] = bgcolor
options["fgcolor"] = fgcolor
return markup.convert(
html = markup.convert(
text, target, self.dirs.data_dir, headers=headers, options=options
)
html = html.replace("<p>",'<p dir="auto">')
return html

def save_to_disk(self, exit_imminent=False, changing_journal=False, saveas=False):
self.save_old_day()
Expand Down

0 comments on commit be9e2db

Please sign in to comment.