Sat, 16 Mar 2019 20:17:06 +0100
Fixed some code style issues.
E5XML/HighlightingStylesWriter.py | file | annotate | diff | comparison | revisions | |
Preferences/ConfigurationPages/EditorHighlightingStylesPage.py | file | annotate | diff | comparison | revisions |
--- a/E5XML/HighlightingStylesWriter.py Sat Mar 16 20:14:21 2019 +0100 +++ b/E5XML/HighlightingStylesWriter.py Sat Mar 16 20:17:06 2019 +0100 @@ -72,7 +72,7 @@ self.writeAttribute("eolfill", str(lexer.eolFill(style, substyle))) self.writeStartElement("Description") - self.writeCharacters(lexer.description(style, substyle)) + self.writeCharacters(description) self.writeEndElement() # Description if substyle >= 0: self.writeStartElement("Words")
--- a/Preferences/ConfigurationPages/EditorHighlightingStylesPage.py Sat Mar 16 20:14:21 2019 +0100 +++ b/Preferences/ConfigurationPages/EditorHighlightingStylesPage.py Sat Mar 16 20:17:06 2019 +0100 @@ -169,7 +169,7 @@ @return tuple containing the style and sub-style numbers @rtype tuple of (int, int) """ - itm = self.styleElementList.currentItem() + itm = self.styleElementList.currentItem() if itm is None: styles = (0, -1) # return default style else: @@ -691,7 +691,7 @@ if ok: self.lexer.delSubstyle(style, substyle) - itm = self.styleElementList.currentItem() + itm = self.styleElementList.currentItem() parent = itm.parent() index = parent.indexOfChild(itm) parent.takeChild(index) @@ -710,7 +710,7 @@ self.lexer.setDescription(description, style, substyle) self.lexer.setWords(words, style, substyle) - itm = self.styleElementList.currentItem() + itm = self.styleElementList.currentItem() itm.setText(0, description) @pyqtSlot()