From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (schwarze@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p8ILIJdM012413 for ; Sun, 18 Sep 2011 17:18:19 -0400 (EDT) Received: (from schwarze@localhost) by krisdoz.my.domain (8.14.3/8.14.3/Submit) id p8ILIJE6010702; Sun, 18 Sep 2011 17:18:19 -0400 (EDT) Date: Sun, 18 Sep 2011 17:18:19 -0400 (EDT) Message-Id: <201109182118.p8ILIJE6010702@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: fix a regression introduced in 1.11.7: even a breakable hyphen X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- fix a regression introduced in 1.11.7: even a breakable hyphen may be bold or underlined ok kristaps@ Modified Files: -------------- mdocml: term.c Revision Data ------------- Index: term.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/term.c,v retrieving revision 1.198 retrieving revision 1.199 diff -Lterm.c -Lterm.c -u -p -r1.198 -r1.199 --- term.c +++ term.c @@ -576,13 +576,16 @@ encode(struct termp *p, const char *word adjbuf(p, p->col + 1 + (len * 3)); for (i = 0; i < len; i++) { - if ( ! isgraph((unsigned char)word[i])) { + if (ASCII_HYPH != word[i] && + ! isgraph((unsigned char)word[i])) { p->buf[p->col++] = word[i]; continue; } if (TERMFONT_UNDER == f) p->buf[p->col++] = '_'; + else if (ASCII_HYPH == word[i]) + p->buf[p->col++] = '-'; else p->buf[p->col++] = word[i]; -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv