diff --git a/src/vtp/ops/operation.py b/src/vtp/ops/operation.py index eb5e56c..44377e4 100644 --- a/src/vtp/ops/operation.py +++ b/src/vtp/ops/operation.py @@ -138,13 +138,13 @@ def imprimir_formatting( case "empty_line": a_line = "
" case "begin_good_box": - a_line = '
' + a_line = "*" * 12 case "end_good_box": - a_line = "
" + a_line = "*" * 12 case "begin_error_box": - a_line = '
' + a_line = "#" * 12 case "end_error_box": - a_line = "
" + a_line = "#" * 12 case _: raise RuntimeError( f"Error: unsupported printing construct {a_construct}" @@ -175,7 +175,10 @@ def imprimir_formatting( self.stdout_output.append(a_line) def imprimir( - self, a_line: str, incoming_printlevel: int = Globals.get("DEFAULT_VERBOSITY") + self, + a_line: str, + incoming_printlevel: int = Globals.get("DEFAULT_VERBOSITY"), + handle_hyperlinks: bool = False, ): """Either prints a line of text to STDOUT or appends it to a list, in which case the output needs to be retrieved. If @@ -190,9 +193,10 @@ def imprimir( # - convert an array to a table with css class=imprimir # ZZZ # import pdb; pdb.set_trace() - a_line = Operation._sha1_regex.sub( - r'\1', a_line - ) + if handle_hyperlinks: + a_line = Operation._sha1_regex.sub( + r'\1', a_line + ) match incoming_printlevel: case 1: a_line = '[ERROR] ' + a_line