tfmt: delete 2-space code - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit d33a4d7f1b8fcc524c8b56a0d5a2005fbd9d1df0
 (DIR) parent 73392c2c7cc2e74759480a37e345366dfa265926
 (HTM) Author: Russ Cox <rsc@swtch.com>
       Date:   Thu,  5 Jan 2012 01:02:44 -0500
       
       fmt: delete 2-space code
       
       Typographers say its wrong.
       
       R=rsc
       http://codereview.appspot.com/5517046
       
       Diffstat:
         M src/cmd/fmt.c                       |      19 +------------------
       
       1 file changed, 1 insertion(+), 18 deletions(-)
       ---
 (DIR) diff --git a/src/cmd/fmt.c b/src/cmd/fmt.c
       t@@ -166,23 +166,6 @@ printindent(int w)
                }
        }
        
       -/* give extra space if word ends with period, etc. */
       -int
       -nspaceafter(char *s)
       -{
       -        int n;
       -
       -        n = strlen(s);
       -        if(n < 2)
       -                return 1;
       -        if(isupper((uchar)s[0]) && n < 4)
       -                return 1;
       -        if(strchr(".!?", s[n-1]) != nil)
       -                return 2;
       -        return 1;
       -}
       -        
       -
        void
        printwords(Word **w, int nw)
        {
       t@@ -207,7 +190,7 @@ printwords(Word **w, int nw)
                                        break;        /* out of words */
                                if(w[i]->indent != w[i-1]->indent)
                                        break;        /* indent change */
       -                        nsp = nspaceafter(w[i-1]->text);
       +                        nsp = 1;
                                if(col+nsp+utflen(w[i]->text) > extraindent+length)
                                        break;        /* fold line */
                                if(!join && w[i]->bol)