From 05ecadf9db2f01306c1c16c34f53d2aec4b77ff2 Mon Sep 17 00:00:00 2001 From: Mikhail Golubev Date: Wed, 21 Oct 2015 20:05:25 +0300 Subject: [PATCH] PY-17333 Don't allow Docutils to parse indented first line specially --- .../docstrings/PyStructuredDocstringFormatter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;