lib/junoser/xsd/sequence.rb in junoser-0.1.6 vs lib/junoser/xsd/sequence.rb in junoser-0.2.0

- old
+ new

@@ -26,10 +26,10 @@ case when config.empty? when has_single_child_of?(Junoser::Xsd::Choice) child = config.first str = child.config.map(&:to_s).compact.join(",\n") - format('sc(', str, ')') unless str.empty? + format('c(', str, ')') unless str.empty? else str = config.map {|c| c.is_a?(String) ? format(OFFSET + c) : c.to_s }.compact.join(",\n") format('s(', str, ')') end end