Skip to content

Better HTML rendering of \n and \t in text snippets#6

Open
khinsen wants to merge 1 commit intofeenkcom:mainfrom
khinsen:control-characters-in-text-snippets
Open

Better HTML rendering of \n and \t in text snippets#6
khinsen wants to merge 1 commit intofeenkcom:mainfrom
khinsen:control-characters-in-text-snippets

Conversation

@khinsen
Copy link
Copy Markdown

@khinsen khinsen commented Dec 23, 2023

Rendering \n as <br> should be uncontroversial, it's the exact equivalent.

Rendering \t as &emsp; does the right thing only at the beginning of a line. For my use cases, that's just fine. There is no general equivalent of tabulation in HTML, so probably there is no better implementation than this.

@feenk-cla-helper
Copy link
Copy Markdown

[This is an automated comment from the feenk Contributor License Agreement robot.]

Hello khinsen!

Thanks for your interest in making software development better. Please sign the feenk Contributor License Agreement so we can investigate merging in your work.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant