From cae3102a21eccf24ced6ce6401d104b3e10a35a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 19 Apr 2011 18:16:25 +0200 Subject: genruby: fix enum output --- tools/genruby.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/genruby.rb b/tools/genruby.rb index 032fdc8..390c6af 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -159,7 +159,7 @@ def gen_enums path, indent values = $2 typename = $3 v = set_type typename, typename - args = values.split(',').collect { |cst| ':'+cst.strip.downcase }.join(', ').gsub(/=/,',') + args = values.split(',').collect { |cst| ':'+cst.strip.downcase }.join(', ').gsub(/=/,',').gsub(/ ,/,',') r << indent+"# #{typedef} {...} #{typename};\n" r << wrap_text( indent+"enum :#{v}, [ #{args} ]", 150, indent+' '*4 )+"\n" end -- cgit v1.1-2-g2b99