Skip to content

Linebreak issue in slab #2

@GCheung55

Description

@GCheung55

There's a linebreak issue I've experienced in Express.js when rendering one slab file.

I have yet to test in browser.

If my layout slab is:

{slab layout}
<!doctype html>
<html>
    <head>
        <title></title>
    </head>
    <body>
        {body}
    </body>
</html>
{endslab}

The output is:

<!doctype html>
<html>
    <head>
        <title></title>
    </head>
    <body>
        {body}
    </body>
</html>

I'm not sure what the issue is, but its fixed with:

{slab layout}<!doctype html>
<html>
    <head>
        <title></title>
    </head>
    <body>
        {body}
    </body>
</html>{endslab}

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