2013-05-11 59 views
1

我开始用玉玩,卡住了这一点:玉和空格

我想输出是这样的:

 
    hey! this 
is pre 
    text!!! 

我用标签缩进的模板,如果我写的空间在行的开头我得到不是两个标签&空格缩进错误。

我的玉模板:

 
div 
    pre. hey! this 
     is pre 
      text!!! 

也试图用 “|”句法。

那么,我该如何输出呢?在此先感谢^ _^

回答

0

我的错,是简单或输错了一句:

 
pre 
    | hey! this 
    |  is pre 
    |   text!!! 

也得到了它使用& NBSP工作;作为第一个“太空”角色和“。”语法

 
pre. 
      hey! this 
       is pre 
        text! 
0

我想出了这一点:

view.jade

a.nav 
    i.user 
    nbsp 
    | Me 

的style.css

nbsp { 
    width: 0.5em; 
    display: inline-block; 
    white-space: nowrap; 
}