summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2011-11-03 20:36:59 +0000
committerIngo Schwarze <schwarze@openbsd.org>2011-11-03 20:36:59 +0000
commit58cb4029b5bbf8bbd532e28dc63a27ce80b2c528 (patch)
tree54a727ff15d0660c3ca4f222144eb051dd2d40ba
parent60c17cebf663c7f44310727a906f23c091316324 (diff)
downloadmandoc-58cb4029b5bbf8bbd532e28dc63a27ce80b2c528.tar.gz
Correct .Eo spacing:
no space between the delimiters and the enclosed text. The mdoc_html.c part was added by kristaps; ok kristaps@.
-rw-r--r--mdoc_html.c6
-rw-r--r--mdoc_term.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index d1031328..acb68891 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -189,7 +189,7 @@ static const struct htmlmdoc mdocs[MDOC_MAX] = {
{NULL, NULL}, /* Ec */ /* FIXME: no space */
{NULL, NULL}, /* Ef */
{mdoc_em_pre, NULL}, /* Em */
- {NULL, NULL}, /* Eo */
+ {mdoc_quote_pre, mdoc_quote_post}, /* Eo */
{mdoc_xx_pre, NULL}, /* Fx */
{mdoc_ms_pre, NULL}, /* Ms */
{mdoc_igndelim_pre, NULL}, /* No */
@@ -2185,6 +2185,8 @@ mdoc_quote_pre(MDOC_ARGS)
PAIR_CLASS_INIT(&tag, "opt");
print_otag(h, TAG_SPAN, 1, &tag);
break;
+ case (MDOC_Eo):
+ break;
case (MDOC_Do):
/* FALLTHROUGH */
case (MDOC_Dq):
@@ -2250,6 +2252,8 @@ mdoc_quote_post(MDOC_ARGS)
case (MDOC_Bq):
print_text(h, "\\(rB");
break;
+ case (MDOC_Eo):
+ break;
case (MDOC_Qo):
/* FALLTHROUGH */
case (MDOC_Qq):
diff --git a/mdoc_term.c b/mdoc_term.c
index 709fc108..f0db5e89 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -194,7 +194,7 @@ static const struct termact termacts[MDOC_MAX] = {
{ NULL, NULL }, /* Ec */ /* FIXME: no space */
{ NULL, NULL }, /* Ef */
{ termp_under_pre, NULL }, /* Em */
- { NULL, NULL }, /* Eo */
+ { termp_quote_pre, termp_quote_post }, /* Eo */
{ termp_xx_pre, NULL }, /* Fx */
{ termp_bold_pre, NULL }, /* Ms */
{ termp_igndelim_pre, NULL }, /* No */
@@ -1925,6 +1925,8 @@ termp_quote_pre(DECL_ARGS)
case (MDOC_Dq):
term_word(p, "``");
break;
+ case (MDOC_Eo):
+ break;
case (MDOC_Po):
/* FALLTHROUGH */
case (MDOC_Pq):
@@ -1989,6 +1991,8 @@ termp_quote_post(DECL_ARGS)
case (MDOC_Dq):
term_word(p, "''");
break;
+ case (MDOC_Eo):
+ break;
case (MDOC_Po):
/* FALLTHROUGH */
case (MDOC_Pq):