choojs / nanohtml

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

Way to keep whitespaces intact? #161

Open saschanaz opened 5 years ago

saschanaz commented 5 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 5 years ago

Sounds like a bug imo!

SlavaMelnyk commented 3 years ago

any updates on that?