diff --git a/python/src/com/jetbrains/python/documentation/docstrings/PyStructuredDocstringFormatter.java b/python/src/com/jetbrains/python/documentation/docstrings/PyStructuredDocstringFormatter.java index 2d14aea96255..4c0a21c0f5c8 100644 --- a/python/src/com/jetbrains/python/documentation/docstrings/PyStructuredDocstringFormatter.java +++ b/python/src/com/jetbrains/python/documentation/docstrings/PyStructuredDocstringFormatter.java @@ -64,7 +64,7 @@ public class PyStructuredDocstringFormatter { if (module == null) return Lists.newArrayList(); final List result = new ArrayList(); - final String preparedDocstring = PyIndentUtil.removeCommonIndent(docstring, true); + final String preparedDocstring = PyIndentUtil.removeCommonIndent(docstring, true).trim(); final HelperPackage formatter; final StructuredDocString structuredDocString;