[Feature Request] Add optional parameter in text loading script to preserve linebreaks
{'login': 'jncasey', 'id': 31020859, 'node_id': 'MDQ6VXNlcjMxMDIwODU5', 'avatar_url': 'https://avatars.githubusercontent.com/u/31020859?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/jncasey', 'html_url': 'https://github.com/jncasey', 'followers_url': 'https://api.github.com/users/jncasey/followers', 'following_url': 'https://api.github.com/users/jncasey/following{/other_user}', 'gists_url': 'https://api.github.com/users/jncasey/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/jncasey/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/jncasey/subscriptions', 'organizations_url': 'https://api.github.com/users/jncasey/orgs', 'repos_url': 'https://api.github.com/users/jncasey/repos', 'events_url': 'https://api.github.com/users/jncasey/events{/privacy}', 'received_events_url': 'https://api.github.com/users/jncasey/received_events', 'type': 'User', 'site_admin': False}
[{'id': 1935892871, 'node_id': 'MDU6TGFiZWwxOTM1ODkyODcx', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/enhancement', 'name': 'enhancement', 'color': 'a2eeef', 'default': True, 'description': 'New feature or request'}]
[]
Hi ! Thanks for your message.
Indeed it's a free feature we can add and that can be useful.
If you want to contribute, feel free to open a PR to add it to the text dataset script :) Resolved via #1913.
I'm working on a project about rhyming verse using phonetic poetry and song lyrics, and line breaks are a vital part of the data. 

I recently switched over to use the datasets library when my various corpora grew larger than my computer's memory. And so far, it is SO great. 

But the first time I processed all of my data into a dataset, I hadn't realized the text loader script was processing the source files line-by-line and stripping off the newlines. 

Once I caught the issue, I made my own data loader by modifying one line in the default text loader (changing `batch = batch.splitlines()` to `batch = batch.splitlines(True)` inside `_generate_tables`). And so I'm all set as far as my project is concerned.

But if my use case is more general, it seems like it'd be pretty trivial to add a kwarg to the default text loader called keeplinebreaks or something, which would default to False and get passed to `splitlines()`. 
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/870/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}