Home | History | Annotate | Download | only in antlr3

Lines Matching refs:txt

1130     def escapeNewlines(self, txt):
1131 if txt is None:
1134 txt = txt.replace("%","%25") # escape all escape char ;)
1135 txt = txt.replace("\n","%0A") # escape \n
1136 txt = txt.replace("\r","%0D") # escape \r
1137 return txt