Refactor LabelledString

This commit is contained in:
YishiMichael
2022-04-15 23:58:06 +08:00
parent dbefc3b256
commit a1e77b0ce2

View File

@ -142,7 +142,8 @@ class MTex(LabelledString):
"^": "superscript"
}[self.get_string(char_span)]
raise ValueError(
f"Unclear {script_name} detected while parsing. "
f"Unclear {script_name} detected while parsing "
f"(position {char_span[0]}). "
"Please use braces to clarify"
)
span_end = spans[0][1]