Don't start numbered list unless space present

master
Drew DeVault 7 years ago
parent d8da572ac2
commit ad035a30cc
  1. 8
      src/main.c

@ -321,7 +321,13 @@ static void parse_document(struct parser *p) {
parse_list(p, &indent, -1);
break;
case '.':
parse_list(p, &indent, 1);
if ((ch = parser_getch(p)) == ' ') {
parser_pushch(p, ch);
parse_list(p, &indent, 1);
} else {
parser_pushch(p, ch);
parse_text(p);
}
break;
case '`':
parse_literal(p, &indent);

Loading…
Cancel
Save