lib/faml/element_parser.rb in faml-0.2.3 vs lib/faml/element_parser.rb in faml-0.2.4

- old
+ new

@@ -92,11 +92,11 @@ depth = 1 loop do depth = ParserUtils.balance(s, '{', '}', depth) if depth == 0 attr = s.pre_match + s.matched - return [attr[1, attr.size-2], s.rest.lstrip] + return [attr[1, attr.size-2], s.rest] else if text[-1] == ',' && @line_parser.has_next? text << @line_parser.next_line else syntax_error!('Unmatched brace') @@ -115,10 +115,10 @@ pre_pos = s.pos depth = ParserUtils.balance(s, '(', ')', depth) if depth == 0 t = s.string.byteslice(pre_pos ... s.pos-1) new_attributes.concat(parse_new_attribute_list(t)) - return [new_attributes, s.rest.lstrip] + return [new_attributes, s.rest] else if @line_parser.has_next? text << ' ' << @line_parser.next_line else syntax_error!('Unmatched paren')