class Rufo::Formatter
def indent_literals
def indent_literals return if @literal_indents.empty? lines = @output.lines modified_lines = [] @literal_indents.each do |first_line, last_line, indent| (first_line + 1..last_line).each do |line| next if @unmodifiable_string_lines[line] current_line = lines[line] current_line = "#{" " * indent}#{current_line}" unless modified_lines[line] modified_lines[line] = current_line lines[line] = current_line adjust_other_alignments nil, line, 0, indent end end end @output = lines.join end