Skip to content

Commit

Permalink
Fix the strip problem
Browse files Browse the repository at this point in the history
  • Loading branch information
yorevs committed Oct 25, 2024
1 parent 04aa649 commit 038d992
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/askai/core/support/text_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def remove_markdown(text: AnyStr) -> str:
plain_text = re.sub(r"[-*+]\s+", "", plain_text)
plain_text = re.sub(r"^\d+\.\s+", "", plain_text)

return plain_text.strip()
return plain_text

@staticmethod
def strip_format(text: AnyStr) -> str:
Expand All @@ -109,7 +109,7 @@ def beautify(self, text: Any) -> str:
"""
# fmt: off

text = dedent(str(text)).strip()
text = dedent(str(text))
text = re.sub(self.RE_TYPES[''], self.CHAT_ICONS[''], text)
text = re.sub(self.RE_TYPES[''], self.CHAT_ICONS[''], text)
text = re.sub(self.RE_TYPES[''], self.CHAT_ICONS[''], text)
Expand Down
2 changes: 1 addition & 1 deletion src/main/askai/tui/askai_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def __init__(
self._startup()

def __str__(self) -> str:
return VtColor.strip_colors(shared.app_info.replace("%EOL%", os.linesep))
return VtColor.strip_colors(shared.app_info)

@property
def askai(self) -> AskAi:
Expand Down

0 comments on commit 038d992

Please sign in to comment.