From c2b0c6a146e9ba49d70930ad56f6f5a5f7725f16 Mon Sep 17 00:00:00 2001 From: Saivann Date: Thu, 6 Nov 2014 12:07:12 -0500 Subject: [PATCH] Revert previous workaround in updatetx.rb --- _contrib/updatetx.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_contrib/updatetx.rb b/_contrib/updatetx.rb index 1c8c93f6..f0870bfe 100755 --- a/_contrib/updatetx.rb +++ b/_contrib/updatetx.rb @@ -28,7 +28,7 @@ dirs.each do |dir| next if file == '.' or file == '..' contents = File.read(dir + '/' + file) # Drop HTML code applied to current language only ( until next {% when / else / endcase %} statement ) - contents.gsub!(Regexp.new("{% when '" + lang + "' %}((?!{% endcase %})(?!.*?{% else %}).)*?{% when", Regexp::MULTILINE),'{% when') + contents.gsub!(Regexp.new("{% when '" + lang + "' %}((?!{% endcase %})(?!{% else %}).)*?{% when", Regexp::MULTILINE),'{% when') contents.gsub!(Regexp.new("{% when '" + lang + "' %}((?!{% endcase %}).)*?{% else %}", Regexp::MULTILINE),'{% else %}') contents.gsub!(Regexp.new("{% when '" + lang + "' %}.*?{% endcase %}", Regexp::MULTILINE),'{% endcase %}') # Drop complete {% case / endcase %} statements when not used by any language anymore