mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
Also strip \r from marked text
This commit is contained in:
@@ -310,7 +310,7 @@ def mark(pattern: str, post_processors: Iterable[PostprocessorFunc], text: str,
|
||||
except InvalidMatch:
|
||||
continue
|
||||
|
||||
mark_text = text[s:e].replace('\n', '').replace('\0', '')
|
||||
mark_text = re.sub('[\r\n\0]', '', text[s:e])
|
||||
yield Mark(idx, s, e, mark_text, groupdict)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user