Skip to content

Commit

Permalink
Preserve newlines and spaces within an element
Browse files Browse the repository at this point in the history
  • Loading branch information
daya0576 committed Feb 4, 2025
1 parent 0a8f493 commit c3bfcfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beaverhabits/frontend/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ def confirm_dialog(self):


def habit_notes(records: List[CheckedRecord], limit: int = 10):
with ui.timeline(side="right").classes("w-full pt-5 px-3"):
with ui.timeline(side="right").classes("w-full pt-5 px-3 whitespace-pre-line"):
for record in records[:limit]:
color = "primary" if record.done else "grey-8"
ui.timeline_entry(
Expand Down

0 comments on commit c3bfcfc

Please sign in to comment.