##// END OF EJS Templates
templates: make `firstline` filter not keep '\v', '\f' and similar...
Martin von Zweigbergk -
r49884:1138674e default
parent child Browse files
Show More
@@ -269,7 +269,7 b' def fill76(text):'
269 def firstline(text):
269 def firstline(text):
270 """Any text. Returns the first line of text."""
270 """Any text. Returns the first line of text."""
271 try:
271 try:
272 return text.splitlines(True)[0].rstrip(b'\r\n')
272 return text.splitlines()[0]
273 except IndexError:
273 except IndexError:
274 return b''
274 return b''
275
275
General Comments 0
You need to be logged in to leave comments. Login now