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

}} in parameter value wrongly recognized as end of template #290

Open
not-my-profile opened this issue Jul 11, 2022 · 0 comments
Open

}} in parameter value wrongly recognized as end of template #290

not-my-profile opened this issue Jul 11, 2022 · 0 comments

Comments

@not-my-profile
Copy link

text = '''
{{hello
|foo={{A}, {B}}
|bar=123
}}
'''

import mwparserfromhell

print(mwparserfromhell.parse(text).filter_templates())

Expected output:

['{{hello\n|foo={{A}, {B}}\n|bar=123\n}}']

Received output:

['{{hello\n|foo={{A}, {B}}']
@not-my-profile not-my-profile changed the title Nested templates aren't parsed correctly }} in parameter value wrongly recognized as end of template Jul 11, 2022
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

No branches or pull requests

1 participant