-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Escapable blocks of text #83
Conversation
…g different escape sequences together. Make sure escape sequences are in the final prompt. Organize test file
Nice! Thanks for the contribution. Do you mind adding a test with a multiline string? Otherwise should be good |
Good idea. I added a test for multiline string. |
tests/test_term_utils.py
Outdated
"this is a prompt \n--bar=1.0 \n--baz=2.0 \n {start}another line \nmy final line{end}", | ||
"this is a prompt \n \n \n {start}another line \nmy final line{end}", | ||
{'bar': '1.0', 'baz': '2.0'}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does it make sense to test the case when the arguments are within the escaped block as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added "--foo=3.0" in a part of the multi-line text, to ensure it is not parsed.
allow escapable blocks of text when wrapped in triple backticks or quotes. Fixes kharvd#52
allow escapable blocks of text when wrapped in triple backticks or quotes. Fixes kharvd#52
allow escapable blocks of text when wrapped in triple backticks or quotes. Fixes #52