mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
36b01da797
When rendering a view with annotate_rendered_view_with_filenames enabled, we were inserting newlines after the BEGIN and END comments. These newlines are not ideal in some use cases, such as rendering templates to strings that are then passed around our application. As the newlines were added for aesthetic purposes, we think it makes sense to remove them so that rendered template strings do not contain extraneous newlines. As a result of removing these newlines, the annotations no longer affect the reporting of template error on the correct line, as addressed in #38950. As such, we've reverted those changes as well. Co-authored-by: Chris Gavin <chrisgavin@github.com> |
||
---|---|---|
.. | ||
helpers | ||
locale | ||
renderer | ||
tasks | ||
template | ||
testing | ||
base.rb | ||
buffers.rb | ||
cache_expiry.rb | ||
context.rb | ||
dependency_tracker.rb | ||
digestor.rb | ||
flows.rb | ||
gem_version.rb | ||
helpers.rb | ||
layouts.rb | ||
log_subscriber.rb | ||
lookup_context.rb | ||
model_naming.rb | ||
path_set.rb | ||
railtie.rb | ||
record_identifier.rb | ||
rendering.rb | ||
routing_url_for.rb | ||
template.rb | ||
test_case.rb | ||
unbound_template.rb | ||
version.rb | ||
view_paths.rb |