Skip to content

Commit

Permalink
chore: remove string edit
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRiedler committed Dec 15, 2024
1 parent f76ae13 commit 7ca9765
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/handlebars_assets/handlebars_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@ def choose_engine(data)

def compile(source)
# remove trailing \n on file, for some reason the directives pipeline adds this
source.chomp!($INPUT_RECORD_SEPARATOR)
trim_source = source.chomp($INPUT_RECORD_SEPARATOR)

# handle the case of multiple frameworks combined with ember
# DEFER: use extension setup for ember
if (HandlebarsAssets::Config.multiple_frameworks? && @template_path.is_ember?) ||
(HandlebarsAssets::Config.ember? && !HandlebarsAssets::Config.multiple_frameworks?)
compile_ember(source)
compile_ember(trim_source)
else
compile_default(source)
compile_default(trim_source)
end
end

Expand Down

0 comments on commit 7ca9765

Please sign in to comment.