mirror of
https://github.com/harivansh-afk/veet-code.git
synced 2026-04-15 06:04:44 +00:00
add spacing into ui
This commit is contained in:
parent
ebe32aa67a
commit
6802a3be93
1 changed files with 11 additions and 1 deletions
|
|
@ -470,7 +470,17 @@ class WatchScreen(Screen):
|
||||||
if result.output:
|
if result.output:
|
||||||
# Add visual separators for readability
|
# Add visual separators for readability
|
||||||
out.write("[dim]─" * 60 + "[/dim]")
|
out.write("[dim]─" * 60 + "[/dim]")
|
||||||
out.write(result.output)
|
# Add spacing between test case sections for readability
|
||||||
|
formatted_output = re.sub(
|
||||||
|
r"(\n)(_{10,})([^\n]+)(_{10,})",
|
||||||
|
r"\1\n\2\3\4",
|
||||||
|
result.output
|
||||||
|
)
|
||||||
|
# Replace ___ separators with ===
|
||||||
|
formatted_output = re.sub(r"_{3,}", lambda m: "=" * len(m.group()), formatted_output)
|
||||||
|
# Add blank line above "short test summary info"
|
||||||
|
formatted_output = re.sub(r"(\n)(=+ short test summary info =+)", r"\1\n\2", formatted_output)
|
||||||
|
out.write(formatted_output)
|
||||||
else:
|
else:
|
||||||
out.write("No output")
|
out.write("No output")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue