Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes the immediate issues exposed at
https://gist.github.com/turicas/8bd86dd425d2212dbe214d725121be7c?fbclid=IwAR1VitQE02l7OiCjCKDsdYTJJ9-mC53xlFOD2yhWoxZyCPWrjqchl7H7CPo
That is - any cell containing a line-feed character breaks the text-plugin output.
Besides creating multiline cells in the text output, the code also includes a "blank" line bellow any row having a multi-line cell, so that contents are visually separateted.
Not covered by this code: Parsing back text-tables with multi-line cells.
(I invite the discussion of what features would be better to enable that in this very same PR -
although merging it as is will be mostly harmless - the output of the text plug-in is supposed to be pretty, but it is a dangerous road to ensure data integrity round-trip between its output and back - multi-line cells will complicate a lot the current logic)