diff -r f2af2a655868 -r 245644bfcd24 controls/SearchResultPanel.py --- a/controls/SearchResultPanel.py Fri Mar 22 13:26:31 2019 +0100 +++ b/controls/SearchResultPanel.py Fri Mar 22 13:45:19 2019 +0100 @@ -131,8 +131,7 @@ ("ACTION", "action_block"), ("IL", "IL"), ("ST", "ST"), - ("FILE", ITEM_CONFNODE), - ]: + ("FILE", ITEM_CONFNODE)]: self.TreeImageDict[itemtype] = self.TreeImageList.Add(GetBitmap(imgname)) for itemtype in ["function", "functionBlock", "program", @@ -205,10 +204,10 @@ children = element_infos.setdefault("children", []) for infos, start, end, text in results: if len(words) == 1: # CTN match - child_name = {"body":str(start[0])+":", - "var_inout":_("Variable:")}[infos[1]] - child_type = {"body":ITEM_CONFNODE, - "var_inout":"var_inout"}[infos[1]] + child_name = {"body": str(start[0])+":", + "var_inout": _("Variable:")}[infos[1]] + child_type = {"body": ITEM_CONFNODE, + "var_inout": "var_inout"}[infos[1]] elif infos[1] == "name" or element_type == ITEM_DATATYPE: child_name = GenerateName(infos[1:]) child_type = element_type