Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

sghael
Copy link

@sghael sghael commented Jun 22, 2024

allow escapable blocks of text when wrapped in triple backticks or quotes. Fixes #52

@kharvd
Copy link
Owner

kharvd commented Jun 24, 2024

Nice! Thanks for the contribution. Do you mind adding a test with a multiline string? Otherwise should be good

@sghael
Copy link
Author

sghael commented Jun 27, 2024

Good idea. I added a test for multiline string.

Comment on lines +59 to +61
"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'},
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error on input --a b
2 participants