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:
parent
ff6ee21db9
commit
758fe29253
|
@ -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})
|
||||||
|
|
Loading…
Reference in New Issue