mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-08-07 03:57:45 +00:00
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:
@@ -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) ...
|
||||
|
||||
Reference in New Issue
Block a user