Skip to content

Commit

Permalink
fix intro formatting incosistencies
Browse files Browse the repository at this point in the history
  • Loading branch information
vegu-ai-tools committed Jul 18, 2024
1 parent 0e5e3bc commit ea6efcb
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/talemate/tale_mate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1252,16 +1252,11 @@ def get_intro(self) -> str:
)
except AttributeError:
intro = self.intro

if intro and (not intro.startswith("*") or not intro.startswith('"')):

# if intro is not already italicized or quoted, italicize it


if '"' not in intro and "*" not in intro:
intro = f"*{intro}*"

else:

intro = util.ensure_dialog_format(intro)

intro = util.ensure_dialog_format(intro)

return intro

Expand Down

0 comments on commit ea6efcb

Please sign in to comment.