Remove whitespace check on -c (#92)

Resolves #88
This commit is contained in:
David Yang 2021-08-31 23:31:43 +08:00 committed by GitHub
parent 270d3ed7d7
commit 3c56934ddc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 9 deletions

View File

@ -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;
}

View 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
View File

@ -0,0 +1,8 @@
:ARGS
-s 100 -a hcvc -c " "
:INPUT
foo
:OUTPUT-FILTER
:EXPECTED
foo
:EOF