source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: apply bold and italic to all non-ASCII Unicode codepoints,
@ 2015-10-23 14:51 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2015-10-23 14:51 UTC (permalink / raw)
  To: source

Log Message:
-----------
apply bold and italic to all non-ASCII Unicode codepoints,
fixing input like \fB\('e; issue reported by bentley@

Modified Files:
--------------
    mdocml:
        term.c

Revision Data
-------------
Index: term.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/term.c,v
retrieving revision 1.254
retrieving revision 1.255
diff -Lterm.c -Lterm.c -u -p -r1.254 -r1.255
--- term.c
+++ term.c
@@ -564,7 +564,7 @@ encode1(struct termp *p, int c)
 	if (p->col + 7 >= p->maxcols)
 		adjbuf(p, p->col + 7);
 
-	f = (c == ASCII_HYPH || isgraph(c)) ?
+	f = (c == ASCII_HYPH || c > 127 || isgraph(c)) ?
 	    p->fontq[p->fonti] : TERMFONT_NONE;
 
 	if (p->flags & TERMP_BACKBEFORE) {
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-10-23 14:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-23 14:51 mdocml: apply bold and italic to all non-ASCII Unicode codepoints, 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).