choojs / nanohtml

:dragon: HTML template strings for the Browser with support for Server Side Rendering in Node.
MIT License
687 stars 57 forks source link

Way to keep whitespaces intact? #161

Open saschanaz opened 4 years ago

saschanaz commented 4 years ago

html`<span>1. </span>` always becomes <span>1.</span>. Since whitespaces are relevant in inline context and <pre>, is there a way to insert whitespaces as-is?

goto-bus-stop commented 4 years ago

Sounds like a bug imo!

SlavaMelnyk commented 2 years ago

any updates on that?