Skip to content

Commit

Permalink
🐛 split docstring with /\r?\n/ rather than os.EOL (#917)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yu Zhang authored and DonJayamanne committed Apr 27, 2017
1 parent 790a8a7 commit 952fcf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/providers/hoverProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 952fcf2

Please sign in to comment.