-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐞 fix: Do not mangle output if contains tabs
Fixes #19
- Loading branch information
1 parent
57e92ac
commit bc31e6b
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#shellcheck shell=sh | ||
|
||
%const LIBRARY_PATH: src/column_ansi.sh | ||
Include "${LIBRARY_PATH}" | ||
|
||
input_data () { | ||
printf "this \twill \t be\taligned" | ||
} | ||
|
||
# @see https://github.com/LukeSavefrogs/column_ansi/issues/19 | ||
Describe "Mixed tabs and spaces:" | ||
Example "should work when words have mixed whitespace" | ||
Set 'errexit:on' | ||
|
||
Data input_data | ||
When call column_ansi -t -o "|" | ||
The status should be success | ||
The output should eq "this|will|be|aligned" | ||
End | ||
End |