aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roff_escape.c
diff options
context:
space:
mode:
Diffstat (limited to 'roff_escape.c')
-rw-r--r--roff_escape.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/roff_escape.c b/roff_escape.c
index 39011cde..9d02054d 100644
--- a/roff_escape.c
+++ b/roff_escape.c
@@ -127,6 +127,7 @@ roff_escape(const char *buf, const int ln, const int aesc,
case '\0':
iendarg = --iend;
/* FALLTHROUGH */
+ case '.':
case '\\':
default:
iarg--;
@@ -136,7 +137,6 @@ roff_escape(const char *buf, const int ln, const int aesc,
case ' ':
case '\'':
case '-':
- case '.':
case '0':
case ':':
case '_':
@@ -481,7 +481,7 @@ out:
err = MANDOCERR_ESC_UNSUPP;
break;
case ESCAPE_UNDEF:
- if (buf[inam] == '\\')
+ if (buf[inam] == '\\' || buf[inam] == '.')
return rval;
err = MANDOCERR_ESC_UNDEF;
break;