lib/nanoc/helpers/capturing.rb in nanoc-4.12.14 vs lib/nanoc/helpers/capturing.rb in nanoc-4.12.15
- old
+ new
@@ -73,11 +73,11 @@
end
end
compiled_content_store = @config._context.compiled_content_store
content = compiled_content_store.get(rep, "__capture_#{@name}".to_sym)
- content ? content.string : nil
+ content&.string
end
end
# @overload content_for(name, &block)
# @param [Symbol, String] name
@@ -153,10 +153,10 @@
# Execute block
yield
# Get new piece of erbout
- erbout_addition = erbout[erbout_length..-1]
+ erbout_addition = erbout[erbout_length..]
# Remove addition
erbout[erbout_length..-1] = +''
# Depending on how the filter outputs, the result might be a