diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-17 18:42:42 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-17 18:42:42 +0000 |
commit | fbd9c8d8572ef586c691fb6bcec7f325f50e6ac1 (patch) | |
tree | 87bb155fdf10d7dedd6ce37e90a6842a7c676967 /mdoc_term.c | |
parent | a5327753a1ee02038bf3a01e3770f3d9aa24c1fa (diff) | |
download | mandoc-fbd9c8d8572ef586c691fb6bcec7f325f50e6ac1.tar.gz |
Special characters, e.g. \(ae, are now correctly rendered in the current font decoration.
Diffstat (limited to 'mdoc_term.c')
-rw-r--r-- | mdoc_term.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mdoc_term.c b/mdoc_term.c index cf6a8b50..c91ffb29 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -714,7 +714,7 @@ termp_it_pre(DECL_ARGS) { const struct mdoc_node *bl, *n; char buf[7]; - int i, type, keys[3], vals[3]; + int i, type, keys[3], vals[3], sv; size_t width, offset; if (MDOC_BLOCK == node->type) @@ -898,17 +898,20 @@ termp_it_pre(DECL_ARGS) /* * The dash, hyphen, bullet and enum lists all have a special - * HEAD character. Print it now. + * HEAD character (temporarily bold, in some cases). */ + sv = p->flags; if (MDOC_HEAD == node->type) switch (type) { case (MDOC_Bullet): + p->flags |= TERMP_BOLD; term_word(p, "\\[bu]"); break; case (MDOC_Dash): /* FALLTHROUGH */ case (MDOC_Hyphen): + p->flags |= TERMP_BOLD; term_word(p, "\\-"); break; case (MDOC_Enum): @@ -921,6 +924,8 @@ termp_it_pre(DECL_ARGS) break; } + p->flags = sv; /* Restore saved flags. */ + /* * If we're not going to process our children, indicate so here. */ |