Home | History | Annotate | Download | only in antlr3

Lines Matching refs:txt

1127     def escapeNewlines(self, txt):
1128 if txt is None:
1131 txt = txt.replace("%","%25") # escape all escape char ;)
1132 txt = txt.replace("\n","%0A") # escape \n
1133 txt = txt.replace("\r","%0D") # escape \r
1134 return txt