javascript - Avoiding whitespace between tags in Jade template output when pretty printing -


i have print out input tag , label without space between end of 1 tag , start of next... want pretty-print rest of document.

by default — pretty printing turned on in jade — following:

<input ...></input> <label ...></label> 

i want:

<input ...><label ...></label> 

or

<input ...></input><label ...></label> 

the idea jade - controlling line-breaks in html output doesn't work because input self-closing tag.

update 1: have created obvious solution using mixin , literal html, avoid if possible.

in razor, addressed wrapping whitespace multi-line comment:

    <div>         <span>no trailing</span><!--      --><span>space</span>     </div> 

Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -