Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Redundant newlines #154

@jcubic

Description

@jcubic

I have newline issue, I have header helpers that create http headers.

        $handlebars->addHelper('header', function($template, $context, $arg, $source) {
            $para = $template->parseArguments($arg);
            header($para[0]);
        });

If I have template like this:

{{header "Content-Type: text/plain"}}
{{#each foo}}
    {{this}}
{{/each}}

I have redundant newline at the beginning and when I'm using this one:

{{header "Content-Type: text/plain"}}{{#each foo}}
    {{this}}
{{/each}}

I have newline at the begining of each iteration (in fact I have two newlines, one expected).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions