[dots] Remove trailing whitespaces
- From: Gil Forcada Codinachs <gforcada src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dots] Remove trailing whitespaces
- Date: Sat, 9 Oct 2010 14:42:32 +0000 (UTC)
commit 7369bcac471065eedf934d2acd2e7b20570bf5e5
Author: Gil Forcada <gforcada gnome org>
Date: Sat Oct 9 16:37:34 2010 +0200
Remove trailing whitespaces
dots/app_window.py | 24 ++++++++++++------------
dots/document_builder.py | 4 ++--
dots/dots_project.py | 10 +++++-----
dots/pdfdocument_gi.py | 6 +++---
dots/pdfdocument_pypoppler.py | 6 +++---
dots/table_editor.py | 30 +++++++++++++++---------------
dots/xmldocument.py | 2 +-
7 files changed, 41 insertions(+), 41 deletions(-)
---
diff --git a/dots/app_window.py b/dots/app_window.py
index b7ec1c9..a4acfd4 100644
--- a/dots/app_window.py
+++ b/dots/app_window.py
@@ -55,7 +55,7 @@ class AppWindow(object):
self.conf_xml.set_translation_domain(host_settings.DOMAIN)
self.conf_xml.add_from_file (
os.path.join(host_settings.gtkbuilder_dir, 'config.xml'))
-
+
self.loadConfig()
def loadConfig(self):
@@ -122,7 +122,7 @@ class AppWindow(object):
self.config_builder['outputFormat']['braillePageNumberAt'] = "bottom"
else:
self.config_builder['outputFormat']['braillePages'] = "no"
-
+
if self.document is not None:
self.translate (self.document, self.config_builder)
@@ -180,7 +180,7 @@ class AppWindow(object):
# dialog.run()
# dialog.hide()
# return
-
+
eitem = self._addTable (self.submenu, file, True)
eitem.activate()
eitem.show()
@@ -197,12 +197,12 @@ class AppWindow(object):
dialog.hide()
self.config_builder['translation']['literaryTextTable'] = old_table
return
-
+
if self.document is not None:
self.translate (self.document, self.config_builder)
-
-
+
+
def _populateTablesMenu(self):
def _sepatatorFunc(model, itr):
@@ -274,7 +274,7 @@ class AppWindow(object):
reviewentry.show()
else:
reviewentry.hide()
-
+
def _OnBrailleViewToggle(self, ascii_item):
if ascii_item.get_active():
@@ -284,7 +284,7 @@ class AppWindow(object):
def _onLineChanged(self, view, project, line):
self.main_xml.get_object('reviewentry').set_text(line)
-
+
def _onSave(self, action):
if self.project.out_file is None:
@@ -295,7 +295,7 @@ class AppWindow(object):
self.project.buffer.get_start_iter(),
self.project.buffer.get_end_iter()))
fsave.close()
- self.project.buffer.set_modified(False)
+ self.project.buffer.set_modified(False)
def _onSaveAs(self, action):
dialog = gtk.FileChooserDialog(parent=self.window,
@@ -315,15 +315,15 @@ class AppWindow(object):
self.project.out_file = dialog.get_filename()
self.project.set_name(os.path.basename(self.project.out_file))
self.project.buffer.set_modified(False)
-
+
dialog.destroy()
def _printJobSent(self, job, data, errormsg):
if errormsg is not None:
print "Error printing: " + errormsg
-
+
os.unlink(data)
-
+
def _onPrint(self, action):
dialog = gtkunixprint.PrintUnixDialog()
diff --git a/dots/document_builder.py b/dots/document_builder.py
index 6fb3b32..ef34e0e 100644
--- a/dots/document_builder.py
+++ b/dots/document_builder.py
@@ -35,7 +35,7 @@ def document_new(filename):
else:
doc = XmlDocument(filename)
return doc
-
+
if __name__ == "__main__":
import sys
@@ -58,4 +58,4 @@ if __name__ == "__main__":
d.translate (config_builder)
print d.get_braille_text ()
-
+
diff --git a/dots/dots_project.py b/dots/dots_project.py
index a4169b3..6c9423e 100644
--- a/dots/dots_project.py
+++ b/dots/dots_project.py
@@ -68,8 +68,8 @@ class DotsProject(gtk.ScrolledWindow):
self.current_line = text
self.emit("line-changed", self, self.current_line)
-
-
+
+
def transcribeBraille(self, config):
self.config = config
@@ -83,8 +83,8 @@ class DotsProject(gtk.ScrolledWindow):
def _transcribeBraille(self):
self.document.translate (self.config)
-
- braille_text = self.document.get_braille_text()
+
+ braille_text = self.document.get_braille_text()
if braille_text == "":
return False
@@ -102,4 +102,4 @@ class DotsProject(gtk.ScrolledWindow):
''.join([ascii_braille.ascii_to_braille.get(
x, '') for x in braille_text]))
return True
-
+
diff --git a/dots/pdfdocument_gi.py b/dots/pdfdocument_gi.py
index 4d53472..cac05fc 100644
--- a/dots/pdfdocument_gi.py
+++ b/dots/pdfdocument_gi.py
@@ -34,7 +34,7 @@ class PdfDocument(Document):
return text
-
+
def translate(self, config):
# FIXME: Check if poppler gives us always UTF-8 strings
config['outputFormat']['inputTextEncoding'] = "UTF8"
@@ -54,5 +54,5 @@ if __name__ == "__main__":
PdfDocument._get_text
-
-
+
+
diff --git a/dots/pdfdocument_pypoppler.py b/dots/pdfdocument_pypoppler.py
index 3bf6994..e41c07f 100644
--- a/dots/pdfdocument_pypoppler.py
+++ b/dots/pdfdocument_pypoppler.py
@@ -40,7 +40,7 @@ class PdfDocument(Document):
return text
-
+
def translate(self, config):
# FIXME: Check if poppler gives us always UTF-8 strings
config['outputFormat']['inputTextEncoding'] = "UTF8"
@@ -60,5 +60,5 @@ if __name__ == "__main__":
PdfDocument._get_text
-
-
+
+
diff --git a/dots/table_editor.py b/dots/table_editor.py
index eee0fc3..a5fa15e 100755
--- a/dots/table_editor.py
+++ b/dots/table_editor.py
@@ -205,7 +205,7 @@ class EditDialog(gtk.Dialog):
#action
}
self.entries = []
-
+
operands_list = []
if operands is not None:
operands_list = operands.split(" ")
@@ -237,7 +237,7 @@ class EditDialog(gtk.Dialog):
if len(comments) > 0:
comments.reverse()
entry.set_text (" ".join (comments).lstrip(" "))
-
+
def combo_changed(self, combo):
remove = False
@@ -254,7 +254,7 @@ class EditDialog(gtk.Dialog):
self.add_entries_for_opcode (vbox, opcode, [])
self.add_comments (vbox, [])
vbox.show_all()
-
+
def add_opcode_combo(self, vbox, opcode):
label = gtk.Label ("opcode:")
combo = gtk.ComboBox()
@@ -308,12 +308,12 @@ class EditDialog(gtk.Dialog):
opcode = c.get_model().get_value(iter, 0)
for e in self.entries:
if isinstance(e, gtk.Entry):
- operands += e.get_text() + " "
+ operands += e.get_text() + " "
elif isinstance(e, gtk.ComboBox):
iter = e.get_active_iter()
operands += e.get_model().get_value(iter, 0) + " "
return opcode, operands
-
+
def validate_text(self, entry, string, len, position):
opcode = entry.get_data("opcode")
@@ -420,7 +420,7 @@ class TableEditor(gtk.Dialog):
selection.select_iter(iter)
view.scroll_to_cell(model.get_path(iter))
dialog.destroy()
-
+
def remove_clicked(self,button, view):
selection = view.get_selection();
@@ -431,8 +431,8 @@ class TableEditor(gtk.Dialog):
selection = view.get_selection();
model, iter = selection.get_selected()
- opcode = model.get_value (iter, 0)
- operands = model.get_value (iter, 1)
+ opcode = model.get_value (iter, 0)
+ operands = model.get_value (iter, 1)
dialog = EditDialog (opcode, operands)
dialog.set_transient_for(self)
@@ -492,15 +492,15 @@ class TableEditor(gtk.Dialog):
self.treeview.get_selection().select_path(path)
self.treeview.scroll_to_cell(path)
self.run()
-
-
-
-
-
-
+
+
+
+
+
+
if __name__ == "__main__":
@@ -514,4 +514,4 @@ if __name__ == "__main__":
gtk.main()
-
+
diff --git a/dots/xmldocument.py b/dots/xmldocument.py
index 056116b..5302d54 100644
--- a/dots/xmldocument.py
+++ b/dots/xmldocument.py
@@ -25,4 +25,4 @@ class XmlDocument(Document):
self.translator = Translator(config)
self.braille_text = self.translator.translate_file (self.input_file)
-
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]