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

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions