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 9fec0aef for ; Fri, 11 Aug 2017 11:56:51 -0500 (EST) Date: Fri, 11 Aug 2017 11:56:51 -0500 (EST) Message-Id: <18148351529265047945.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: Make the "new sentence, new line" check stricter, allowing X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Make the "new sentence, new line" check stricter, allowing digits in the last two letters of the last word of the sentence. No false positives in base or Xenocara. Suggested by and OK jmc@. Modified Files: -------------- mandoc: mdoc.c Revision Data ------------- Index: mdoc.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/mdoc.c,v retrieving revision 1.267 retrieving revision 1.268 diff -Lmdoc.c -Lmdoc.c -u -p -r1.267 -r1.268 --- mdoc.c +++ mdoc.c @@ -297,8 +297,8 @@ mdoc_ptext(struct roff_man *mdoc, int li if (end - c < 3) break; if (c[1] != ' ' || - isalpha((unsigned char)c[-2]) == 0 || - isalpha((unsigned char)c[-1]) == 0 || + isalnum((unsigned char)c[-2]) == 0 || + isalnum((unsigned char)c[-1]) == 0 || (c[-2] == 'n' && c[-1] == 'c') || (c[-2] == 'v' && c[-1] == 's')) continue; -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv