mirror of
https://github.com/ascii-boxes/boxes.git
synced 2024-12-04 22:11:07 +01:00
19 lines
798 B
Plaintext
19 lines
798 B
Plaintext
:DESC
|
||
Tests removal of a box of the 'headline' design from unicode text with ANSI color escapes added by lolcat.
|
||
Indentation is restored, by "coloring" of spaces is lost.
|
||
Indentation is correctly restored as 3 spaces, because we give -p, telling it what the requested padding was when the
|
||
box was created.
|
||
|
||
:ARGS
|
||
-n UTF-8 -d headline -p l3r2 -r
|
||
:INPUT
|
||
/**************************/
|
||
/* [38;5;44mf [0m[38;5;49mo [0m[38;5;48mo [0m[38;5;83m [0m[38;5;118m海 [0m[38;5;154m [0m[38;5;184mb [0m[38;5;214ma [0m[38;5;208mr [0m */
|
||
/* f o o b a r */
|
||
/**************************/
|
||
:OUTPUT-FILTER
|
||
:EXPECTED
|
||
[38;5;44mf[0m[38;5;49mo[0m[38;5;48mo[0m[38;5;83m [0m[38;5;118m海[0m[38;5;154m [0m[38;5;184mb[0m[38;5;214ma[0m[38;5;208mr[0m
|
||
foobar
|
||
:EOF
|