question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Option to skip ending line break

See original GitHub issue

In 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:open
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
cowtowncodercommented, Oct 23, 2017

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.

0reactions
tyler2crcommented, Aug 21, 2019

@rage-shadowman 🤦‍♂ thank you!!

After this realization, I used .withNullValue("") on the CsvSchema, and it works like a charm

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found