commit db056a134a01d7470214f2cb10890b9919c61df4 from: Omar Polo date: Tue Oct 26 08:29:41 2021 UTC fix item line detection cherry-pick of commit ff79bf032c776716f71996eda953fe7b6ef8008b from the (abandoned?) branch feature/cache. The spec says (5.5.2 Unordered list items) > Lines beginning with "* " are unordered list items. (regarding the feature/cache branch, I think I want to drop that and start afresh, here's why the cherrypick and not a merge or a rebase) commit - 19aa15d9aafdb8d05b9e198504326acd0b6518c7 commit + db056a134a01d7470214f2cb10890b9919c61df4 blob - c8499e23e63f1af7d0d65e749ba1520193ed9d4b blob + b554e03ef683b22c56829579570b1e577af3db2e --- ChangeLog +++ ChangeLog @@ -1,3 +1,7 @@ +2021-10-26 Omar Polo + + * parser_gemtext.c (detect_line_type): correct item line detection: a space is required after the `*' character. + 2021-10-08 Omar Polo * sandbox.c (landlock_unveil): use landlock on linux if available to restrict what parts of the filesystem telescope can see blob - 18b733769b1ae829dc232a0a9e2258a91cec3b2b blob + 9c5b7240f6f131a06cbfd8cac472f04d3d6b95a2 --- parser_gemtext.c +++ parser_gemtext.c @@ -332,7 +332,10 @@ detect_line_type(const char *buf, size_t len, int in_p return LINE_TEXT; switch (*buf) { - case '*': return LINE_ITEM; + case '*': + if (len > 1 && buf[1] == ' ') + return LINE_ITEM; + break; case '>': return LINE_QUOTE; case '=': if (len >= 1 && buf[1] == '>')