Skip to content

Commit

Permalink
Merge pull request #3 from amirtadayon/np-bugfix
Browse files Browse the repository at this point in the history
Fix bug in the "np" function.
  • Loading branch information
wsshin authored Aug 11, 2020
2 parents 4e96341 + 6c10c6e commit 4b83aa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jemdoc
Original file line number Diff line number Diff line change
Expand Up @@ -550,9 +550,9 @@ def np(f, withcount=False, eatblanks=True):

# in both cases, ditch the trailing \n.
if withcount:
return (s[:-1], c)
return (s, c)
else:
return s[:-1]
return s

def quote(s):
return re.sub(r"""[\\*/+"'<>&$%\.~[\]-]""", r'\\\g<0>', s)
Expand Down

0 comments on commit 4b83aa4

Please sign in to comment.