Added {newline}, #426

This commit is contained in:
Rhet Turnbull 2021-04-17 09:29:11 -07:00
parent 70d68a25ba
commit 7fa7de1563
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,3 @@
""" version info """
__version__ = "0.42.2"
__version__ = "0.42.3"

View File

@ -129,6 +129,10 @@ TEMPLATE_SUBSTITUTIONS = {
"{closeparens}": "A close parentheses: ')'",
"{openbracket}": "An open bracket: '['",
"{closebracket}": "A close bracket: ']'",
"{newline}": r"A newline: '\n'",
"{lf}": r"A line feed: '\n', alias for {newline}",
"{cr}": r"A carriage return: '\r'",
"{crlf}": r"a carriage return + line feed: '\r\n'",
}
# Permitted multi-value substitutions (each of these returns None or 1 or more values)
@ -200,6 +204,10 @@ PUNCTUATION = {
"openbracket": "[",
"closebracket": "]",
"questionmark": "?",
"newline": "\n",
"lf": "\n",
"cr": "\r",
"crlf": "\r\n",
}