--- a/QScintilla/Exporters/__init__.py Fri Mar 11 08:55:14 2011 +0100 +++ b/QScintilla/Exporters/__init__.py Fri Mar 11 16:51:57 2011 +0100 @@ -9,6 +9,7 @@ from PyQt4.QtGui import QApplication + def getSupportedFormats(): """ Module function to get a dictionary of supported exporters. @@ -18,15 +19,16 @@ for the exporters (string) """ supportedFormats = { - "HTML" : QApplication.translate('Exporters', "HTML"), - "RTF" : QApplication.translate('Exporters', "RTF"), - "PDF" : QApplication.translate('Exporters', "PDF"), - "TeX" : QApplication.translate('Exporters', "TeX"), - "ODT" : QApplication.translate('Exporters', "ODT"), + "HTML": QApplication.translate('Exporters', "HTML"), + "RTF": QApplication.translate('Exporters', "RTF"), + "PDF": QApplication.translate('Exporters', "PDF"), + "TeX": QApplication.translate('Exporters', "TeX"), + "ODT": QApplication.translate('Exporters', "ODT"), } return supportedFormats + def getExporter(format, editor): """ Module function to instantiate an exporter object for a given format.