aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/eqn_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-10-02 12:18:33 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-10-02 12:18:33 +0000
commit5c2a309a34544b8ce4a9f64845f876bc1bc560f3 (patch)
treed572d2e5ce3701957f4c44116659c93f3df0cb6c /eqn_term.c
parentdce15460d35b432711d3ee5ce9bb6e9dfb880b18 (diff)
downloadmandoc-5c2a309a34544b8ce4a9f64845f876bc1bc560f3.tar.gz
mandoc-5c2a309a34544b8ce4a9f64845f876bc1bc560f3.tar.zst
mandoc-5c2a309a34544b8ce4a9f64845f876bc1bc560f3.zip
Render the eqn(7) "sqrt" function as U+221A in UTF-8 output.
This also agrees with what groff does. Suggested by an attendee of EuroBSDCon 2018 in Bucuresti. Written on the plane Bucuresti-Frankfurt returning from EuroBSDCon.
Diffstat (limited to 'eqn_term.c')
-rw-r--r--eqn_term.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eqn_term.c b/eqn_term.c
index 669c3c56..b1a438d9 100644
--- a/eqn_term.c
+++ b/eqn_term.c
@@ -1,4 +1,4 @@
-/* $Id: eqn_term.c,v 1.17 2017/08/23 21:56:20 schwarze Exp $ */
+/* $Id: eqn_term.c,v 1.18 2018/10/02 12:18:33 schwarze Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -106,7 +106,7 @@ eqn_box(struct termp *p, const struct eqn_box *bp)
/* Special box types. */
if (bp->pos == EQNPOS_SQRT) {
- term_word(p, "sqrt");
+ term_word(p, "\\(sr");
if (bp->first != NULL) {
p->flags |= TERMP_NOSPACE;
eqn_box(p, bp->first);