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

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -