Make import scripts work with frozen strings

This commit is contained in:
Gerhard Schlager
2019-05-30 22:20:57 +02:00
parent c70d0c6659
commit 0f3c3bc309
14 changed files with 19 additions and 17 deletions

View File

@ -283,7 +283,7 @@ class String
def indent(count, char = ' ')
gsub(/([^\n]*)(\n|$)/) do |match|
last_iteration = ($1 == "" && $2 == "")
line = ""
line = +""
line << (char * count) unless last_iteration
line << $1
line << $2