I have the following problem:
p
directive(attr="foo")
| (
directive(attr="bar")
|)
Desired output is:
<directive attr="foo"></directive> (<directive attr="bar"></directive>)
But the way Jade is processed the whitespace is introduced after the first parentheses like:
<directive attr="foo"></directive> ( <directive attr="bar"></directive>)
Is there a way to ignore the whitespace after the first parentheses? Or should I find a workaround with Angular maybe?
You can do
p
| <directive attr="bar">(</directive><directive attr="bar">)</directive>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.