WIP Initial support for some unicode line endings #200

Merged
asdf merged 2 commits from unicode-line-endings into release2.3.3 2020-11-06 02:34:11 +00:00
Collaborator

Fixes #199

Handle unicode line terminators to avoid rendering issues identified in #199.

  • NEL, Next Line, U+0085
  • LS, Line Separator, U+2028
  • PS, Paragraph Separator, U+2029

Each item will be identified as a line ending and rendered as appropriate.

Fixes #199 Handle unicode line terminators to avoid rendering issues identified in #199. - NEL, Next Line, U+0085 - LS, Line Separator, U+2028 - PS, Paragraph Separator, U+2029 Each item will be identified as a line ending and rendered as appropriate.
asdf self-assigned this 2020-11-05 10:26:13 +00:00
Owner

This seems solid to me. THinking about wha tyou said regarding \v... that makes sense. I've never seen a \v in the wild (not even sure how to input it out of a code situation), but doing either two or three newlines seems reasonable if we wanted to add that here (though I am not sure it is necessary).

I approve this as is if we want to merge in.

This seems solid to me. THinking about wha tyou said regarding `\v`... that makes sense. I've never seen a `\v` in the wild (not even sure how to input it out of a code situation), but doing either two or three newlines seems reasonable if we wanted to add that here (though I am not sure it is necessary). I approve this as is if we want to merge in.
asdf merged commit 8c838ce491 into release2.3.3 2020-11-06 02:34:11 +00:00
asdf deleted branch unicode-line-endings 2020-11-06 02:34:21 +00:00
Author
Collaborator

Thanks for the feedback.

By the way, you can do a vertical tab with CTRL+K. Easiest way to see it is to run cat, then type aaaa^Kaaaa followed by enter. It's the first I've actually seen it too.

Thanks for the feedback. By the way, you can do a vertical tab with CTRL+K. Easiest way to see it is to run `cat`, then type `aaaa^Kaaaa` followed by enter. It's the first I've actually seen it too.
Owner

Thanks for your work on this issue! Much appreciated :-D

Interesting. I had no idea ctrl-k would give you a vertical tab. I wonder if cat just treats it as two newlines or if it is outputting an actual vertical tab that the terminal renders?

Thanks for your work on this issue! Much appreciated :-D Interesting. I had no idea ctrl-k would give you a vertical tab. I wonder if cat just treats it as two newlines or if it is outputting an actual vertical tab that the terminal renders?
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sloum/bombadillo#200
No description provided.