Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ywjno opened this issue Jun 28, 2012 · 2 comments

Comments

@ywjno
Copy link
Member

ywjno commented Jun 28, 2012

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

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

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

class A{
    String name;
Integer id;
}

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

@wendal
Copy link
Member

wendal commented Jun 28, 2012

恩,查查去

@zozoh
Copy link
Member

zozoh commented Jun 28, 2012

看来 zDoc 输出 code 段的时候,应该把行首的 Tab 变成 4 个空格 ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants