File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -116,23 +116,23 @@ def closing_tag
116
116
def indent ( open_tag , child_content , close_tag )
117
117
spaces = ' ' * indent_level * INDENT_SIZE
118
118
119
- html = ""
119
+ html = + ""
120
120
121
121
if no_child? || child_is_text?
122
122
if self_closing_tag?
123
- html += spaces + open_tag . sub ( />$/ , '/>' )
123
+ html << spaces << open_tag . sub ( />$/ , '/>' )
124
124
else
125
125
# one line
126
- html += spaces + open_tag + child_content + close_tag
126
+ html << spaces << open_tag << child_content << close_tag
127
127
end
128
128
else
129
129
# multiple lines
130
- html += spaces + open_tag + "\n "
131
- html += child_content # the child takes care of its own spaces
132
- html += spaces + close_tag
130
+ html << spaces << open_tag << "\n "
131
+ html << child_content # the child takes care of its own spaces
132
+ html << spaces << close_tag
133
133
end
134
134
135
- html += "\n "
135
+ html << "\n "
136
136
137
137
html
138
138
end
You can’t perform that action at this time.
0 commit comments