Option to skip ending line break
See original GitHub issueIn RFC-4180 it is said that CSV implementations may choose to include a line break at the end of the file or not.
It could be nice to add an option to choose. For instance something like this :
schema.withEndingLineSeparator();
schema.withoutEndingLineSeparator();
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Line Break in HTML Select Option? - Stack Overflow
Use a short descriptor in the option text and give the full skinny in the title. It doesn't work on Chrome and Safari....
Read more >Line and page breaks - Microsoft Support
Select the Line and Page Breaks tab. Under Textbox options, in the Tight wrap list, select one of the following: All. First and...
Read more >line-break - CSS: Cascading Style Sheets - MDN Web Docs
The line-break CSS property sets how to break lines of Chinese, Japanese, or Korean (CJK) text when working with punctuation and symbols.
Read more >The Dos and Don'ts of Adding an HTML Line Break
To do a line break in HTML, use the <br> tag. Simply place the tag wherever you want to force a line break....
Read more >How to Remove Line Breaks in Excel (3 Easy Ways)
Remove Line Breaks Using Find and Replace · Click the Home tab · In the Editing group, click on 'Find & Select' ·...
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
Ok, sounds reasonable from usage perspective. Not sure how easy it’d be to do, wrt. when determination is made regarding adding a linefeed: if it’s at the time of starting a new line, this should be quite easy.
There is also the question of whether this belongs in schema, or as a
CsvGenerator.Feature
. I can see either being possible choice.@rage-shadowman 🤦♂ thank you!!
After this realization, I used
.withNullValue("")
on the CsvSchema, and it works like a charm