No blocks and blocks now supported

This commit is contained in:
Stephen Cochrane 2020-05-03 20:16:23 +02:00
parent 8e2e542514
commit 97401ebcf9
2 changed files with 30 additions and 1 deletions

View File

@ -1,9 +1,11 @@
Title
[
No Box
Newline, with a lot of text to test going to a newline, this is a must.
New-Line.
]
(
Hi this is tristan
Hi this is skippy
)
(
Another box

View File

@ -148,7 +148,34 @@ void parseBox() {
}
void parseNoBox() {
char cat[2];
int i = 0;
char *nl = "\n";
int flag = 0;
append_html(" ");
while (ch != ']' && ch != EOF) {
cat[0] = ch;
cat[1] = '\0';
if (i > 61) {
if (ch != ',' && ch != ' ') {
i = 0;
if (!flag) {
append_html("-");
flag = 0;
}
append_html(nl);
} else {
flag = 1;
}
}
append_html(cat);
next();
i++;
}
append_html("\n");
}
void append_html(char *str) {