Error was somewhere else

This commit is contained in:
Maximilien Rigaut 2022-05-31 05:25:06 +02:00
parent a9c77ccad9
commit e5b8989756
No known key found for this signature in database
GPG Key ID: 4F14B23709ADA5B1
1 changed files with 1 additions and 1 deletions

View File

@ -431,7 +431,7 @@ et_custom_span = (
# markup sums up all in-line elements
markup = il_link | et_strong | et_em | et_strikethrough | et_underline | et_custom_span
enhanced_text = pp.ZeroOrMore(
markup | pp.SkipTo(markup)('text').add_parse_action(of_type(TextToken)) + markup # TODO: error when matching *pog*
markup | pp.SkipTo(markup)('text').add_parse_action(of_type(TextToken)) + markup
) + pp.Opt(pp.Regex(r'.+')("text").add_parse_action(of_type(TextToken)))
# Multiline elements