Option to Disable Truncation / Empty Line removal?
See original GitHub issueHi there! 👋
First of all, thanks for your contribution of listr2
to the community! This is a great library, and saves a bunch of boilerplate!
I am a bit confused with listr2’s behavior of truncating and removing empty lines in my errors. The content and the formatting that I’m writing in the errors is important, and I would like it to stay the same.
See the error in the source code and the formatting in the terminal. The first line of the error is truncated and the empty line is removed:
Here are our options:
{
exitOnError: false,
rendererOptions: { collapseErrors: false },
concurrent: 5,
}
It seems like this could also be a default for listr2
, but maybe there’s a reason why that’s not a good idea.
cc @Josehower
Issue Analytics
- State:
- Created 3 years ago
- Comments:20 (11 by maintainers)
Top Results From Across the Web
How to completely remove truncation symbol (default '$') from ...
I found a solution by "abusing" the display table. In the below solution, msg is a string whose length is window width +1...
Read more >Remove All Empty Lines from Text - Online Text Tools
Super simple, free and fast browser-based utility for removing empty lines from text. Just paste your text and it'll instantly get empty lines...
Read more >How to stop intellij-idea from removing white spaces at end of ...
Go to File->Settings->Editor->General and under Other, set the drop down next to Strip trailing spaces on Save to whatever you wish.
Read more >File download - Need to truncate the last empty line
Hi all, 1. I have a file in Application Server (Tcode - AL11). 2. Using Open, Read & Close dataset - I am...
Read more >TRUNCATE TABLE
Removing rows with the TRUNCATE TABLE statement can be faster than removing all rows with the DELETE statement, especially if the table has...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Nice, just tested
formatOutput: 'wrap'
and it seems to be working:Thumbs-up from me on release! 🚀
Edit: I guess I didn’t test
removeEmptyLines: false
, but will do so as well!Edit 2:
removeEmptyLines: false
also works properly 🙌Yes, that is exactly true.