Skip to content

Support indents #3

@blond

Description

@blond

Before:

{
    block : 'page',
    title : 'Title of the page',
    favicon : '/favicon.ico',
    styles : [{ elem : 'css', url : 'index.min.css' }],
    scripts: [{ elem : 'js', url : 'index.min.js' }],
    mods : { theme : 'islands' },
    content : [
        block>elem
    ]
};

Result:

{
    block : 'page',
    title : 'Title of the page',
    favicon : '/favicon.ico',
    styles : [{ elem : 'css', url : 'index.min.css' }],
    scripts: [{ elem : 'js', url : 'index.min.js' }],
    mods : { theme : 'islands' },
    content : [
        {
    block: 'block',
    content: {
        block: 'elem',
        content: {}
    }
}
    ]
};

Expected:

{
    block : 'page',
    title : 'Title of the page',
    favicon : '/favicon.ico',
    styles : [{ elem : 'css', url : 'index.min.css' }],
    scripts: [{ elem : 'js', url : 'index.min.js' }],
    mods : { theme : 'islands' },
    content : [
        {
            block: 'block',
            content: {
                block: 'elem',
                content: {}
            }
        }
    ]
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions