Skip to content

{{foo~}} space control behavior is different from older version #852

@zordius

Description

@zordius

older version (without mustache standalone tag handling):
http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-271106d.js
http://jsfiddle.net/4Lkmnru6/
template: 1\n{{foo~}} \n\n 23\n{{bar}}4
output: 1\n23\n4 ( all space and line change are removed after {{foo~}} before 23 )

current version (with mustache standalone tag handling):
http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-cf343a1.js
http://jsfiddle.net/4Lkmnru6/1/
template: 1\n{{foo~}} \n\n 23\n{{bar}}4
output: 1\n\n 23\n4 (only one space and line change are removed after {{foo~}} before 23 )

Questions:

  1. should space control behavior work just like old version?
  2. space control should be handled before or after standalone tag detection?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions