Skip to content

Commit

Permalink
fix markup parse error
Browse files Browse the repository at this point in the history
Signed-off-by: pengzhile <[email protected]>
  • Loading branch information
pengzhile committed Mar 12, 2023
1 parent aaa7884 commit 7f363b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/pandora/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-

__version__ = '0.6.8'
__version__ = '0.6.9'
11 changes: 6 additions & 5 deletions src/pandora/openai/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def print(msg):

@staticmethod
def info(text: str, highlight=False, bold=False, end='\n'):
Console.__console.print(text, style='info_b' if bold else 'info', highlight=highlight, end=end)
Console.__console.print(text, style='info_b' if bold else 'info', highlight=highlight, end=end, markup=False)

@staticmethod
def info_b(text: str, highlight=False, end='\n'):
Expand All @@ -48,7 +48,7 @@ def info_bh(text: str, end='\n'):

@staticmethod
def debug(text: str, highlight=False, bold=False, end='\n'):
Console.__console.print(text, style='debug_b' if bold else 'debug', highlight=highlight, end=end)
Console.__console.print(text, style='debug_b' if bold else 'debug', highlight=highlight, end=end, markup=False)

@staticmethod
def debug_b(text: str, highlight=False, end='\n'):
Expand All @@ -64,7 +64,7 @@ def debug_bh(text: str, end='\n'):

@staticmethod
def error(text: str, highlight=False, bold=False, end='\n'):
Console.__console.print(text, style='error_b' if bold else 'error', highlight=highlight, end=end)
Console.__console.print(text, style='error_b' if bold else 'error', highlight=highlight, end=end, markup=False)

@staticmethod
def error_b(text: str, highlight=False, end='\n'):
Expand All @@ -80,7 +80,8 @@ def error_bh(text: str, end='\n'):

@staticmethod
def success(text: str, highlight=False, bold=False, end='\n'):
Console.__console.print(text, style='success_b' if bold else 'success', highlight=highlight, end=end)
Console.__console.print(text, style='success_b' if bold else 'success', highlight=highlight, end=end,
markup=False)

@staticmethod
def success_b(text: str, highlight=False, end='\n'):
Expand All @@ -96,7 +97,7 @@ def success_bh(text: str, end='\n'):

@staticmethod
def warn(text: str, highlight=False, bold=False, end='\n'):
Console.__console.print(text, style='warn_b' if bold else 'warn', highlight=highlight, end=end)
Console.__console.print(text, style='warn_b' if bold else 'warn', highlight=highlight, end=end, markup=False)

@staticmethod
def warn_b(text: str, highlight=False, end='\n'):
Expand Down

0 comments on commit 7f363b5

Please sign in to comment.