commit 316e53b36f36446a94c8f98543602029fe2a6dd8
parent 13283e7b64a683973054679b07119c8f8b0d16d1
Author: Drew DeVault <sir@cmpwn.com>
Date: Thu, 18 Oct 2018 08:18:11 -0400
Add '.' to characters permitted in man page titles
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
@@ -1,3 +1,4 @@
.build
scdoc
scdoc.1
+scdoc.5
diff --git a/src/main.c b/src/main.c
@@ -71,7 +71,7 @@ static void parse_preamble(struct parser *p) {
struct tm *now_tm = localtime(&now);
strftime(date, sizeof(date), "%F", now_tm);
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);
} else if (ch == '(') {
section = parse_section(p);