diff -r c85d02ca2fa9 -r 763ef93fabee RefactoringRope/CodeAssistServer.py --- a/RefactoringRope/CodeAssistServer.py Sun Oct 15 19:30:10 2017 +0200 +++ b/RefactoringRope/CodeAssistServer.py Mon Oct 16 19:06:30 2017 +0200 @@ -345,6 +345,8 @@ """ language = editor.getLanguage() if language not in self.__editorLanguageMapping: + self.__documentationViewer.documentationReady( + self.tr("Language '{0}' is not supported.").format(language)) return idString = self.__editorLanguageMapping[language] @@ -380,9 +382,16 @@ documentationDict = result["DocumentationDict"] if documentationDict: if "module" in documentationDict: - documentationDict["note"] = \ - self.tr("Present in {0} module").format( - documentationDict["module"]) + if Preferences.getDocuViewer("ShowInfoAsMarkdown"): + documentationDict["note"] = \ + self.tr("Present in _{0}_ module", + "Note with markdown syntax")\ + .format(documentationDict["module"]) + else: + documentationDict["note"] = \ + self.tr("Present in '{0}' module", + "Note as plain text")\ + .format(documentationDict["module"]) del documentationDict["module"] docu = documentationDict