Open vuaru opened 9 years ago
According to jade both
|world
and| world
should result inhelloworld
.
This is not in line with the Jade online converter (http://jade-lang.com/); both result in hello world
. But there is a feature in Diet to remove whitespace outside of a tag (>
) and inside of a tag ( <
). In this case you'd use the inner variant:
p< hello
| world
Well, node.js's gulp-jade (https://www.npmjs.com/package/gulp-jade) does give that output. Perhaps there's some mismatch between their online converter and their node.js package?
And thanks for reminding me of the alligators existence :)
Does that package perhaps output minimized HTML? My plan for supporting HTML minimization always included retaining significant whitespace, but maybe they are taking a simpler route?
Results in
hello world
. According to jade both|world
and| world
should result inhelloworld
.It's a small issue, but together with the lack of inline tags (#964), it means having to resort to writing inline html code, e.g.
p <strong>hello</strong>world
.