From 66cf7041f5ca428c150ca27ad262577bce054f34 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Mon, 27 Dec 2021 19:26:42 +0100 Subject: [PATCH] Escape newline in docstring. Otherwise `'.` is seen as the second parameter. --- numpydoc/docscrape.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/numpydoc/docscrape.py b/numpydoc/docscrape.py index 9e306aea..01276757 100644 --- a/numpydoc/docscrape.py +++ b/numpydoc/docscrape.py @@ -30,7 +30,7 @@ def __init__(self, data): Parameters ---------- data : str - String with lines separated by '\n'. + String with lines separated by '\\n'. """ if isinstance(data, list):