This commit is contained in:
Antonio Scandurra
2015-03-18 11:29:39 +01:00
parent f0b9bb7ce3
commit ae2c92a1dc

View File

@@ -114,7 +114,7 @@ class TokenizedLine
# For a given `indentLevel`, calculates how many trailing spaces cannot fit in a single tab.
#
# indentLevel - {Number}
# Returns a {Number} representing the odd indentation spaces for `indentLevel`.
# Returns a {Number} representing the odd indentation spaces in `indentLevel`.
oddIndentationSpacesForIndentLevel: (indentLevel) ->
oddIndentLevel = indentLevel - Math.floor(indentLevel)
Math.round(@tabLength * oddIndentLevel)