fix: add stdout context length setting and improve text shrinking logic (#559)

* feat: Add stdout context length setting and improve text shrinking logic

* lint
This commit is contained in:
you-n-g
2025-02-06 23:00:15 +08:00
committed by GitHub
parent 5c7ceec37f
commit e1f86d7ca0
4 changed files with 16 additions and 3 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ Tools that support generating better formats.
def shrink_text(text: str, context_lines: int = 200) -> str:
"""
When the context is too long, hide the part that is not important.
When the context is too long, hide the part in the middle.
text before
... (XXXXX lines are hidden) ...