mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
In mkd_text(), I need to
1. not put out a trailing newline, and 2. `emblock()` the token list to get my output.
This commit is contained in:
+1
-1
@@ -1296,8 +1296,8 @@ mkd_text(char *bfr, int size, FILE *output, int flags)
|
||||
f.flags = flags & USER_FLAGS;
|
||||
|
||||
reparse(bfr, size, 0, &f);
|
||||
emblock(&f);
|
||||
fwrite(T(f.out), S(f.out), 1, output);
|
||||
putc('\n', output);
|
||||
|
||||
___mkd_freemmiot(&f);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user