Merge pull request #551 from alafr/Dash-array

Add support for dash array
This commit is contained in:
Devon Govett 2016-11-07 11:23:06 -05:00 committed by GitHub
commit f9ab215ea6

View File

@ -46,11 +46,14 @@ module.exports =
dash: (length, options = {}) ->
return this unless length?
space = options.space ? length
phase = options.phase or 0
@addContent "[#{length} #{space}] #{phase} d"
if Array.isArray length
length = length.join ' '
phase = options.phase or 0
@addContent "[#{length}] #{phase} d"
else
space = options.space ? length
phase = options.phase or 0
@addContent "[#{length} #{space}] #{phase} d"
undash: ->
@addContent "[] 0 d"