Add '.' to characters permitted in man page titles

master
Drew DeVault 6 years ago
parent 13283e7b64
commit 316e53b36f
  1. 1
      .gitignore
  2. 2
      src/main.c

1
.gitignore vendored

@ -1,3 +1,4 @@
.build .build
scdoc scdoc
scdoc.1 scdoc.1
scdoc.5

@ -71,7 +71,7 @@ static void parse_preamble(struct parser *p) {
struct tm *now_tm = localtime(&now); struct tm *now_tm = localtime(&now);
strftime(date, sizeof(date), "%F", now_tm); strftime(date, sizeof(date), "%F", now_tm);
while ((ch = parser_getch(p)) != UTF8_INVALID) { while ((ch = parser_getch(p)) != UTF8_INVALID) {
if ((ch < 0x80 && isalnum(ch)) || ch == '_' || ch == '-') { if ((ch < 0x80 && isalnum(ch)) || ch == '_' || ch == '-' || ch == '.') {
assert(str_append_ch(name, ch) != -1); assert(str_append_ch(name, ch) != -1);
} else if (ch == '(') { } else if (ch == '(') {
section = parse_section(p); section = parse_section(p);

Loading…
Cancel
Save