Skip to content

Commit 31a4c5a

Browse files
committed
BUG: fix splitlines blankline
[skip actions][skip azp][skip cirrus]
1 parent ecc8b96 commit 31a4c5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpy/_core/strings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,9 +1347,9 @@ def _splitlines(a, keepends=None):
13471347
13481348
Examples
13491349
--------
1350-
>>> np.char.splitlines("first line\nsecond line")
1350+
>>> np.char.splitlines("first line\\nsecond line")
13511351
array(list(['first line', 'second line']), dtype=object)
1352-
>>> a = np.array(["first\nsecond", "third\nfourth"])
1352+
>>> a = np.array(["first\\nsecond", "third\\nfourth"])
13531353
>>> np.char.splitlines(a)
13541354
array([list(['first', 'second']), list(['third', 'fourth'])], dtype=object)
13551355

0 commit comments

Comments
 (0)