Fix the way @tags are written out

Tags are typically separated by spaces, not newlines.

I suppose this could be an option
This commit is contained in:
Joe Hansche 2015-08-04 13:25:26 -04:00
parent ff6ee21db9
commit 758fe29253
1 changed files with 2 additions and 2 deletions

View File

@ -37,8 +37,8 @@ module.exports = class Gherkin extends Beautifier
@write_indented(comment, indent) @write_indented(comment, indent)
write_tags: (indent = 0) -> write_tags: (indent = 0) ->
for tag in @tags.splice(0, @tags.length) if @tags.length > 0
@write_indented(tag, indent) @write_indented(@tags.splice(0, @tags.length).join(' '), indent)
comment: (value, line) -> comment: (value, line) ->
logger.verbose({token: 'comment', value: value.trim(), line: line}) logger.verbose({token: 'comment', value: value.trim(), line: line})