Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line endings #15

Closed
Perlence opened this issue Apr 26, 2016 · 3 comments
Closed

Line endings #15

Perlence opened this issue Apr 26, 2016 · 3 comments
Assignees

Comments

@Perlence
Copy link

Should lemonade convert line endings? For example if you copy something on Windows host and lemonade paste it on Linux host, there are \r characters that are almost never needed.

@pocke
Copy link
Member

pocke commented Apr 26, 2016

It's a nice idea.
However, I don't think lemonade should convert it as default. When copy a binary file, lemonade may malfunction.

I'll add a option for converting line ending.

example

lemonade.toml for lemonade server. https://github.com/pocke/lemonade#server

port = 1234
allow = '192.168.0.0/24'
convert_eol = true

@pocke pocke self-assigned this Apr 26, 2016
@pocke pocke closed this as completed in #16 May 1, 2016
@pocke
Copy link
Member

pocke commented May 1, 2016

@Perlence I've implemented this feature at #16 .

https://github.com/pocke/lemonade/releases/tag/v1.1.0

Please try the following option.
https://github.com/pocke/lemonade#line-ending

# on linux
$ lemonade paste --line-ending lf  # => converted text

or add line-ending section into lemonade.toml on linux
https://github.com/pocke/lemonade#client

line-ending = "lf"

@Perlence
Copy link
Author

Perlence commented May 1, 2016

Works like a charm, thank you 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants