Skip to content

Commit 547b107

Browse files
committed
[skip changelog] Fixed lib list output on Windows
1 parent 06bcd3f commit 547b107

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli/lib/list.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func (ir installedResult) String() string {
119119
if sentence == "" {
120120
sentence = "-"
121121
} else if len(sentence) > 40 {
122-
sentence = sentence[:39] + ""
122+
sentence = sentence[:37] + "..."
123123
}
124124

125125
t.AddRow(name, lib.Version, available, location, sentence)

test/test_lib.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def test_list(run_command):
4646
assert "" != toks[1]
4747
assert "" != toks[2]
4848
# Verifies library sentence
49-
assert "An efficient and elegant JSON library f…" == toks[4]
49+
assert "An efficient and elegant JSON library..." == toks[4]
5050

5151
# Look at the JSON output
5252
result = run_command("lib list --format json")

0 commit comments

Comments
 (0)