fix: do not add the more button
if all the content fit
This commit is contained in:
parent
e0cf2a6059
commit
61db53767c
@ -63,6 +63,7 @@ int main(int ac, char **av)
|
|||||||
if (content == NULL)
|
if (content == NULL)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
if (strlen(content) == MAX_SIZE)
|
||||||
strcat(content, BUTTON);
|
strcat(content, BUTTON);
|
||||||
|
|
||||||
int ret = write_file("README.md", content);
|
int ret = write_file("README.md", content);
|
||||||
|
Loading…
Reference in New Issue
Block a user