* mandoc: remove spacing after another representation of unary minus
@ 2017-08-23 21:56 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2017-08-23 21:56 UTC (permalink / raw)
To: source
Log Message:
-----------
remove spacing after another representation of unary minus
Modified Files:
--------------
mandoc:
eqn_term.c
Revision Data
-------------
Index: eqn_term.c
===================================================================
RCS file: /home/cvs/mandoc/mandoc/eqn_term.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -Leqn_term.c -Leqn_term.c -u -p -r1.16 -r1.17
--- eqn_term.c
+++ eqn_term.c
@@ -96,8 +96,10 @@ eqn_box(struct termp *p, const struct eq
p->flags |= TERMP_NOSPACE;
term_word(p, bp->text);
if ((cp = strchr(bp->text, '\0')) > bp->text &&
- ((cp[-1] == '-' && bp->prev == NULL) ||
- strchr("\"'([{", cp[-1]) != NULL))
+ (strchr("\"'([{", cp[-1]) != NULL ||
+ (bp->prev == NULL && (cp[-1] == '-' ||
+ (cp >= bp->text + 5 &&
+ strcmp(cp - 5, "\\[mi]") == 0)))))
p->flags |= TERMP_NOSPACE;
}
--
To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-08-23 21:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-23 21:56 mandoc: remove spacing after another representation of unary minus schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).