Changeset f661cee


Ignore:
Timestamp:
Jul 22, 2011, 3:00:24 AM (10 years ago)
Author:
Jason Gross <jgross@mit.edu>
Branches:
master, release-1.9
Children:
e9a939b, 11e78d5, d933c3ca, a7fac14
Parents:
6500907
git-author:
Jason Gross <jgross@mit.edu> (07/22/11 02:30:46)
git-committer:
Jason Gross <jgross@mit.edu> (07/22/11 03:00:24)
Message:
Treat [!.?]" as end of sentence in edit:fill-paragraph

This fixes trac-#81 (M-q messes with end-of-sentence spacing when period
is in quotes).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • editwin.c

    r6829afc rf661cee  
    11511151{
    11521152  oe_excursion x;
    1153   gunichar ch;
     1153  gunichar ch = 0;
     1154  gunichar last_ch;
    11541155  int sentence;
    11551156
     
    11841185    }
    11851186
     1187    last_ch = ch;
    11861188    ch = owl_editwin_get_char_at_point(e);
    11871189
     
    12011203    }
    12021204
    1203     if(ch == '.' || ch == '!' || ch == '?')
     1205    if (ch == '.' || ch == '!' || ch == '?' ||
     1206        (ch == '"' && (last_ch == '.' || last_ch == '!' || last_ch == '?')))
    12041207      sentence = 1;
    12051208    else
Note: See TracChangeset for help on using the changeset viewer.