From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id a2e0cf5f for ; Wed, 23 Aug 2017 16:56:50 -0500 (EST) Date: Wed, 23 Aug 2017 16:56:50 -0500 (EST) Message-Id: <11917882507310046154.enqueue@fantadrom.bsd.lv> X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: mandoc: remove spacing after another representation of unary minus X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 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