Steve Borho committed c65bc27

commit: white-space cleanup

Comments (0)

Files changed (1)


         for part in parts:
             if len(new_sentence[-1]) + len(part) + 1 > line_width:
             new_sentence[-1] += '%s ' % part
         sentence = u'\n'.join([x.strip() for x in new_sentence]).encode('utf-8')
         if linkmandatory:
             issueregex = self.repo.ui.config('tortoisehg', 'issue.regex')
             if issueregex:
-                commitmessage = buf.get_text(buf.get_start_iter(), 
+                commitmessage = buf.get_text(buf.get_start_iter(),
                 m =, commitmessage)
                 if not m:
                     gdialog.Prompt(_('Nothing Commited'),
-                           _('No issue link found in the commit message.' 
+                           _('No issue link found in the commit message.'
                              'The commit message should contain an issue link. Configure this '
                              'in the \'Issue\' section in the settings'), self).run()
         fnames = [ file[FM_PATH_UTF8] for file in self.filemodel
                    if file[FM_CHECKED] ]
         buf.delete_selection(True, True)
-        buf.insert_at_cursor('\n'.join(fnames))    
+        buf.insert_at_cursor('\n'.join(fnames))
     def msg_word_wrap(self, sender):
         sumlen, maxlen = self.get_lengths()
         if not lines:
         if sumlen and len(lines[0].rstrip()) > sumlen:
                    _('The summary line length of %i is greater than %i') %
         if not maxlen:
         lnum = int(sumlen > 0)
         while lnum < len(lines):
             lines[lnum] = lines[lnum].rstrip() + ' '
                                         + lines[lnum+1]
                     lines[lnum] = lines[lnum][0:ind].rstrip()
             lnum += 1
-        buf.set_text('\n'.join(lines))                       
+        buf.set_text('\n'.join(lines))
     def msg_config(self, sender):
         dlg = thgconfig.ConfigDialog(True, focus='tortoisehg.summarylen')
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.