-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi Han,
I have received a patch from Mark Lumsden to fix https://bugs.debian.org/812810 . It would be very nice if you could review the patch. On 04/03/16 19:08, Mark Lumsden wrote: > Here is a patch that changes the behaviour of mg's fill-paragraph to not add > a space to the end of a paragraph, should that paragraph not have a space > after it's last character. > > Mark Lumsden. > > Index: paragraph.c > =================================================================== RCS file: > /cvs/src/usr.bin/mg/paragraph.c,v retrieving revision 1.42 diff -u -p -u -p > -r1.42 paragraph.c --- paragraph.c 14 Dec 2015 03:25:59 -0000 1.42 > +++ paragraph.c 2 Apr 2016 13:28:26 -0000 @@ -203,13 > +203,13 @@ fillpara(int f, int n) newlength = clength + 1 + wordlen; > > /* - * if at end of line or at doublespace and previous + > * if at doublespace and previous * character was one of > '.','?','!' doublespace here. * behave the same way if a ')' is preceded by a > * [.?!] and followed by a doublespace. */ - if ((eolflag > || - curwp->w_doto == > llength(curwp->w_dotp) || + if (!eolflag && + > (curwp->w_doto == llength(curwp->w_dotp) || (c = > lgetc(curwp->w_dotp, curwp->w_doto)) == ' ' || c == '\t') && > (ISEOSP(wbuf[wordlen - 1]) || (wbuf[wordlen - 1] == ')' && wordlen >= 2 && > Thanx very much Harri -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXBP82AAoJEAqeKp5m04HL42wH/0ScbrnaphQhbQAQcpX60a2w 6O87SYwmsXR3FDKURxWhbWmyWf16P5WLHFBKWEfl8BlZyHSilGX7pcHqud0nJZCY GWzIZzycJDMN5/9pg4QrFq+MuLBcjVqVvVypHxMluJIp43t6l+SDRc6XaDBH37Rl NMLqWNmP7yriLNs/lJp0yWAzjJGFLkL4LNbF7ksppHKVEidzw8+LaTedG8M05U/j 3FmJYHV/kBazqEC5D/WNmBz/5NYtz99aN9or5yOZM1FzLVVWGEIwxWmDmH897IM1 Q2/KJ1J1pEyRHnILlilfhfDlELWI711oJpomeymbGv1zjNyKDWR8mF8IrbG6YJw= =tyYN -----END PGP SIGNATURE-----

