~ubuntu-branches/ubuntu/vivid/gedit-plugins/vivid-proposed

« back to all changes in this revision

Viewing changes to plugins/joinlines/joinlines.py

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-08-20 11:28:57 UTC
  • mfrom: (1.4.9)
  • Revision ID: package-import@ubuntu.com-20120820112857-b9o0cpx9enivzy8u
Tags: 3.5.1-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
    if not start.ends_line():
104
104
        start.forward_to_line_end()
105
105
 
 
106
    # Include trailing spaces in the chunk to be removed
 
107
    while start.backward_char() and start.get_char() in ('\t', ' '):
 
108
        pass
 
109
    start.forward_char()
 
110
 
106
111
    while doc.get_iter_at_mark(end_mark).compare(start) == 1:
107
112
        end = start.copy()
108
113
        while end.get_char() in ('\r', '\n', ' ', '\t'):