-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
QuotedString
, multiline=True
and a newline in the quote sequence
#492
Comments
This is interesting, using a newline as part of the quotes. Needs some further study. |
https://www.iucr.org/__data/assets/text_file/0009/112131/CIF2-ENBF.txt is the grammar I'm trying to implement. My question specifically applies to "text-field".
I would like to use Edit: I think this is how to directly implement it with the existing grammar constructs you have. line_term = (Literal("\r") + Opt("\n")) | Literal("\n")
text_delim = Combine(line_term + Literal(";"))
text_content = ~(ZeroOrMore(allchars) + text_delim + ZeroOrMore(allchars)) + ZeroOrMore(allchars)
text_field = text_delim + text_content + text_delim |
I think I've found a bug in
QuotedString
wheremultiline=True
and there is a newline in the quote sequence.The newline is ignored.
Is this the desired behaviour?
The text was updated successfully, but these errors were encountered: