shairubin / fun_with_ast

let's have fun manipulating ASTs in Python
Apache License 2.0
0 stars 1 forks source link

String body: \\n does not match node.s: \n #281

Closed shairubin closed 3 months ago

shairubin commented 3 months ago

def new_entry(self, raw: str, date=None, sort: bool = True) -> Entry:

raw = raw.replace("\\n ", "\n").replace("\\n", "\n")