diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-04 16:34:59 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2008-12-04 16:34:59 +0000 |
commit | fb40e7adf35e6b21b0e64e170b71e1a4d2cf5351 (patch) | |
tree | 709633693c524f8f2a224e8031814f910d646925 /mlg.c | |
parent | 7ea64ffd96cef95695a6c74dbf90f76d73fa961d (diff) | |
download | mandoc-fb40e7adf35e6b21b0e64e170b71e1a4d2cf5351.tar.gz |
Character-set validation fixes.
Diffstat (limited to 'mlg.c')
-rw-r--r-- | mlg.c | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -594,10 +594,6 @@ mlg_rofftoken(void *arg, int space, int value) seq = " "; sz = 6; break; - case (ROFFTok_Null): - seq = ""; - sz = 0; - break; case (ROFFTok_Hyphen): seq = "‐"; sz = 7; @@ -670,13 +666,20 @@ mlg_rofftoken(void *arg, int space, int value) seq = "Nan"; sz = 3; break; + case (ROFFTok_Quote): + seq = """; + sz = 6; + break; + default: + /* TODO: print error. */ + return(0); } if (space && ! ml_nputs(p->mbuf, " ", 1, &res)) return(0); p->pos += res; - if (0 != sz && ! ml_nputs(p->mbuf, seq, sz, &res)) + if ( ! ml_nputs(p->mbuf, seq, sz, &res)) return(0); p->pos += res; |