stree.parse(): Beautify debug logging

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2024-10-06 17:13:41 +02:00
commit 3cd7926693

View file

@ -21,7 +21,7 @@ def _cleanup_line(line: str) -> str:
return r return r
def parse(s: str, allow_full_lines: bool=True, root_content: str='root') -> StringTree: # export def parse(s: str, allow_full_lines: bool=True, root_content: str='root') -> StringTree: # export
slog(DEBUG, "parsing", s) slog_m(DEBUG, "--->--- parsing --->---\n" + s + "\n---<--- parsing ---<---\n")
root = StringTree('', content=root_content) root = StringTree('', content=root_content)
sec = '' sec = ''
for line in s.splitlines(): for line in s.splitlines():