Repository navigation
Commit 4ce0ecf
committed
widget.py: Avoid extra empty lines when message-lines or error-lines is 0
With message-lines set to 0, the detail of a message is truncated
away entirely, but LogLine still prints an empty line, a line with
only the indentation and another empty line after the message.
Likewise, a failure message in verbose mode with error-lines set to 0
skips the log tail, but is still followed by two empty lines instead
of the usual one.
Only print the message detail when some of it is left, and only add
the newline that introduces the failure details when they are printed.
Failure messages keep the single empty line that separates them from
the next message, and from the next entry in the failure summary.
Fixes #21451 parent 3f4c304 commit 4ce0ecf
1 file changed
Lines changed: 16 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
782 | 782 | | |
783 | 783 | | |
784 | 784 | | |
785 | | - | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
786 | 788 | | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
792 | 794 | | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
798 | 800 | | |
799 | | - | |
| 801 | + | |
800 | 802 | | |
801 | 803 | | |
802 | | - | |
803 | | - | |
804 | 804 | | |
| 805 | + | |
805 | 806 | | |
806 | 807 | | |
807 | 808 | | |
| 809 | + | |
808 | 810 | | |
809 | 811 | | |
810 | 812 | | |
| |||
0 commit comments