File tree 6 files changed +9
-9
lines changed
layout/block/linePrependor
6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ module.exports = class AnsiPainter
60
60
61
61
_getStylesForTagName : (name ) ->
62
62
unless tags[name]?
63
- throw Error " Unkown tag name `#{ name} `"
63
+ throw Error " Unknown tag name `#{ name} `"
64
64
65
65
tags[name]
66
66
Original file line number Diff line number Diff line change @@ -43,15 +43,15 @@ styles.color = (str) ->
43
43
return ' ' if str is ' none'
44
44
code = codes[str]
45
45
unless code?
46
- throw Error " Unkown color `#{ str} `"
46
+ throw Error " Unknown color `#{ str} `"
47
47
48
48
" \x1b [" + code + " m"
49
49
50
50
styles .bg = (str ) ->
51
51
return ' ' if str is ' none'
52
52
code = codes[' bg-' + str]
53
53
unless code?
54
- throw Error " Unkown bg color `#{ str} `"
54
+ throw Error " Unknown bg color `#{ str} `"
55
55
56
56
" \x1B [" + code + " m"
57
57
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ module.exports = class DefaultLinePrependor extends require './_LinePrependor'
28
28
addToLeft = self .pad left
29
29
addToRight = self .pad diff - left
30
30
else
31
- throw Error " Unkown alignment `#{ alignment} `"
31
+ throw Error " Unknown alignment `#{ alignment} `"
32
32
output = addToLeft + char + addToRight
33
33
else
34
34
output = self .pad @_config .amount
Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ module.exports = _common =
7
7
if style .color ?
8
8
tagName = ' color-' + style .color
9
9
unless AnsiPainter .tags [tagName]?
10
- throw Error " Unkown color `#{ style .color } `"
10
+ throw Error " Unknown color `#{ style .color } `"
11
11
12
12
tagsToAdd .push tagName
13
13
14
14
if style .background ?
15
15
tagName = ' bg-' + style .background
16
16
unless AnsiPainter .tags [tagName]?
17
- throw Error " Unkown background `#{ style .background } `"
17
+ throw Error " Unknown background `#{ style .background } `"
18
18
19
19
tagsToAdd .push tagName
20
20
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ module.exports = class DeclarationBlock
21
21
return Arbitrary
22
22
23
23
unless cls = declarationClasses[prop]
24
- throw Error " Unkown property `#{ prop} `. Write it as `_#{ prop} ` if you're defining a custom property"
24
+ throw Error " Unknown property `#{ prop} `. Write it as `_#{ prop} ` if you're defining a custom property"
25
25
26
26
return cls
27
27
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ module.exports = self =
72
72
process .stdout .getWindowSize (1 )[0 ]
73
73
else if tty .getWindowSize
74
74
tty .getWindowSize ()[1 ]
75
- else if process .stdout .columns and process . stdout . rows
76
- process .stdout .rows
75
+ else if process .stdout .columns
76
+ process .stdout .columns
77
77
78
78
if typeof cols is ' number' && cols > 30 then cols else 80
You can’t perform that action at this time.
0 commit comments