diff --git a/src/client/providers/hoverProvider.ts b/src/client/providers/hoverProvider.ts index 8894b420a46c..c9c657a3ea1a 100644 --- a/src/client/providers/hoverProvider.ts +++ b/src/client/providers/hoverProvider.ts @@ -34,7 +34,7 @@ export class PythonHoverProvider implements vscode.HoverProvider { } } if (item.docstring) { - let lines = item.docstring.split(EOL); + let lines = item.docstring.split(/\r?\n/); // If the docstring starts with the signature, then remove those lines from the docstring if (lines.length > 0 && item.signature.indexOf(lines[0]) === 0) { lines.shift();