Commits


switch from ^L to a line of only `-' The ^L implementation was ugly and wrong. Using a character from the already allowed set is better. Also, the motivation for ^L was to avoid breaking existing pages (as much as possible). But using a line consisted of only `-' shouldn't break anything, but only improve the legibility. In the future other characters may be added (like a line of only EN DASH or EM DASH for example.)


proposal: use ^L as page separator in text/gemini


update the misleading comment in parser_free


fmt (some missing space -> tab conversion)


include compat first and our headers after system ones


move more stuff outta telescope.c


tilde-heuristics for titles use `~username' as tab title if the page doesn't have any headings


fix off-by-one Thanks to the fact that we're using a bigger buffer in the net process, and thanks to the way otto@' malloc works, it was easy to detect this off-by-one in a large page (RFC3089 in particular).


simplify parsers api; use domain name if no title


move parser declarations so parser.h


drop the in_body field and use a bit in the flags field


deal with BOM -- that is, ignore it


style(9)


drop funny characters at reading-time


refactor parsers: add parser_foreach_line to rule 'em all