Skip to content

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

@ywjno

Description

@ywjno

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

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

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

class A{
    String name;
Integer id;
}

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions