lib/opulent/compiler.rb in opulent-1.5.3 vs lib/opulent/compiler.rb in opulent-1.5.4
- old
+ new
@@ -94,13 +94,13 @@
# @param text [String] Input text to be indented
# @param indent [String] Indentation string to be appended
#
def indent_lines(text, indent)
text ||= ''
- text.lines.inject('') do |_, line|
- indent + line
+ text.lines.inject('') do |result, line|
+ result += indent + line
end
- end
+ end
# Give an explicit error report where an unexpected sequence of tokens
# appears and give indications on how to solve it
#
# @param context [Symbol] Context name in which the error happens