mirror of
https://github.com/ascii-boxes/boxes.git
synced 2024-12-12 09:51:10 +01:00
parent
270d3ed7d7
commit
3c56934ddc
@ -231,15 +231,6 @@ static int command_line_design(opt_t *result, char *optarg)
|
||||
perror(PROJECT);
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
line_t templine = {0};
|
||||
templine.len = strlen(result->cld);
|
||||
templine.text = result->cld;
|
||||
if (empty_line(&templine)) {
|
||||
fprintf(stderr, "%s: boxes may not consist entirely of whitespace\n", PROJECT);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
result->design_choice_by_user = 1;
|
||||
return 0;
|
||||
}
|
||||
|
8
test/171_c_right_justify.txt
Normal file
8
test/171_c_right_justify.txt
Normal file
@ -0,0 +1,8 @@
|
||||
:ARGS
|
||||
-s 100 -a hr -c " "
|
||||
:INPUT
|
||||
foo
|
||||
:OUTPUT-FILTER
|
||||
:EXPECTED
|
||||
foo
|
||||
:EOF
|
8
test/172_c_centering.txt
Normal file
8
test/172_c_centering.txt
Normal file
@ -0,0 +1,8 @@
|
||||
:ARGS
|
||||
-s 100 -a hcvc -c " "
|
||||
:INPUT
|
||||
foo
|
||||
:OUTPUT-FILTER
|
||||
:EXPECTED
|
||||
foo
|
||||
:EOF
|
Loading…
Reference in New Issue
Block a user