summaryrefslogtreecommitdiffstats
path: root/mlg.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-04 16:34:59 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-04 16:34:59 +0000
commitfb40e7adf35e6b21b0e64e170b71e1a4d2cf5351 (patch)
tree709633693c524f8f2a224e8031814f910d646925 /mlg.c
parent7ea64ffd96cef95695a6c74dbf90f76d73fa961d (diff)
downloadmandoc-fb40e7adf35e6b21b0e64e170b71e1a4d2cf5351.tar.gz
Character-set validation fixes.
Diffstat (limited to 'mlg.c')
-rw-r--r--mlg.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/mlg.c b/mlg.c
index ac413e3a..52bbb822 100644
--- a/mlg.c
+++ b/mlg.c
@@ -594,10 +594,6 @@ mlg_rofftoken(void *arg, int space, int value)
seq = "&nbsp;";
sz = 6;
break;
- case (ROFFTok_Null):
- seq = "";
- sz = 0;
- break;
case (ROFFTok_Hyphen):
seq = "&#8208;";
sz = 7;
@@ -670,13 +666,20 @@ mlg_rofftoken(void *arg, int space, int value)
seq = "Nan";
sz = 3;
break;
+ case (ROFFTok_Quote):
+ seq = "&quot;";
+ 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;