diff -r b2bda20cdd23 -r c206d08c28e7 RefactoringRope/CodeAssistServer.py --- a/RefactoringRope/CodeAssistServer.py Mon Jun 21 19:40:56 2021 +0200 +++ b/RefactoringRope/CodeAssistServer.py Sat Jul 17 15:39:01 2021 +0200 @@ -370,14 +370,9 @@ if not idString: language = editor.getLanguage() - if Preferences.getDocuViewer("ShowInfoAsRichText"): - warning = self.tr( - "Language <b>{0}</b> is not supported." - ).format(language) - else: - warning = self.tr( - "Language '{0}' is not supported." - ).format(language) + warning = self.tr( + "Language <b>{0}</b> is not supported." + ).format(language) self.__documentationViewer.documentationReady( warning, isWarning=True) return @@ -418,14 +413,9 @@ if documentationDict: if "module" in documentationDict: if documentationDict["module"]: - if Preferences.getDocuViewer("ShowInfoAsRichText"): - documentationDict["note"] = self.tr( - "Present in <i>{0}</i> module" - ).format(documentationDict["module"]) - else: - documentationDict["note"] = self.tr( - "Present in '{0}' module" - ).format(documentationDict["module"]) + documentationDict["note"] = self.tr( + "Present in <i>{0}</i> module" + ).format(documentationDict["module"]) del documentationDict["module"] if "typ" in documentationDict: