From 316e53b36f36446a94c8f98543602029fe2a6dd8 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 18 Oct 2018 08:18:11 -0400 Subject: [PATCH] Add '.' to characters permitted in man page titles --- .gitignore | 1 + src/main.c | 2 +- diff --git a/.gitignore b/.gitignore index 50860f7ecd68cb96a0b8a4f6d7c83b312a244686..9cf9ff93b0a9fc553d5971414d61079709c1801c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .build scdoc scdoc.1 +scdoc.5 diff --git a/src/main.c b/src/main.c index 3765f7e425ff50a343471a74fa896ea56cee4852..14b08d2fdce057e4a8648c4f780261d2d4aa30b7 100644 --- a/src/main.c +++ b/src/main.c @@ -71,7 +71,7 @@ time(&now); 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); -- 2.48.1