Jade:如何在输出HTML中有空行? [英] Jade: How to have an empty line in an output HTML?
本文介绍了Jade:如何在输出HTML中有空行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在部分,评论和标签之间留出空行。我使用玉来输出我的html,不能输出空行。这是我想要的。
I want to have an empty lines between sections, comments and tags. I'm using jade to output my html and can't output empty lines. Here is what I want.
<div>
<div class='another'>
</div>
</div>
<div>
I want a line just like above
</div>
推荐答案
以下是适用于我的几个选项:
These are couple of options that worked for me:
= code>运算符
(它输入一段代码片段)与换行符字符串'\ n'
The =
operator (which enters an evaluated piece of code) with the string for newline character '\n'
div
div.another
= '\n'
div I want a line...
|
管道运算符(它以纯文本形式)使用空格。 (由于某些原因,他们必须是其中的两个。)
The |
pipe operator (which enters plain text) with a space. (had to be two of them for some reason..
div
div.another
| // < followed by blank spaces
|
div I want a line...
这篇关于Jade:如何在输出HTML中有空行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文