Skip to content

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

Open
khinsen wants to merge 1 commit into
feenkcom: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 into
feenkcom:mainfrom
khinsen:control-characters-in-text-snippets

Conversation

@khinsen

@khinsen khinsen commented Dec 23, 2023

Copy link
Copy Markdown

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.

@CLAassistant

CLAassistant commented Apr 20, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

2 participants