Skip to content

Commit

Permalink
Add smart line breaks to interactive task outputs by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
riga committed Nov 24, 2022
1 parent faa032c commit cdd2f67
Show file tree
Hide file tree
Showing 4 changed files with 192 additions and 81 deletions.
7 changes: 7 additions & 0 deletions law.cfg.example
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,13 @@
; Type: string
; Default: "fancy"

; interactive_line_breaks
; Description: A boolean flag that decides whether smart line breaks should be used when printing
; interactive task outputs to terminal. Automatically disabled when the terminal width cannot be
; determined.
; Type: boolean
; Default: True


; --- target section -------------------------------------------------------------------------------

Expand Down
1 change: 1 addition & 0 deletions law/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class Config(ConfigParser):
"colored_repr": False,
"colored_str": True,
"interactive_format": "fancy",
"interactive_line_breaks": True,
},
"target": {
"colored_repr": False,
Expand Down
Loading

0 comments on commit cdd2f67

Please sign in to comment.