Changeset e736dcb


Ignore:
Timestamp:
Jul 22, 2011, 2:30:46 AM (10 years ago)
Author:
Jason Gross <jgross@mit.edu>
Children:
092806c
Parents:
d8f22b6
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 re736dcb  
    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.