nutzdoc icon indicating copy to clipboard operation
nutzdoc copied to clipboard

当生成代码块的时候,Tab空格混用的情况下,造成输出的html中代码缩进不一致的问题

Open ywjno opened this issue 12 years ago • 2 comments

因为空白字符不可见,用文字描述

{{{<java>
<4个空格>class A{
<4个空格><4个空格>String name;
<4个空格><1个tab>Integer id;
<4个空格>}
}}}

上面的这段代码生成html的时候是下面这个样子

class A{
    String name;
Integer id;
}

虽然输入的时候在文件中看起来缩进是一样的,但是由于缩进是Tab空格混用, 造成了生成的文档中代码缩进不一致的情况

ywjno avatar Jun 28 '12 07:06 ywjno