Skip to content

Commit dc699eb

Browse files
committed
typo in last commit caused failure
1 parent 9b4ed60 commit dc699eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/interface.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ pub fn set_mathml(mathml_str: impl AsRef<str>) -> Result<String> {
179179
static HTML_ENTITIES_MAPPING: phf::Map<&str, &str> = include!("entities.in");
180180

181181
let mut error_message = "".to_string(); // can't return a result inside the replace_all, so we do this hack of setting the message and then returning the error
182-
// need to deal with character data and convert to something the parser knows
182+
183183
let mathml_str = XML_COMMENT.replace_all(&mathml_str, "");
184184
let mathml_str = PROCESSING_INSTRUCTION.replace_all(&mathml_str, "");
185-
186-
HTML_ENTITIES.replace_all(&mathml_str, |cap: &Captures| match HTML_ENTITIES_MAPPING.get(&cap[1]) {
185+
// FIX: need to deal with character data and convert to something the parser knows
186+
let mathml_str = HTML_ENTITIES.replace_all(&mathml_str, |cap: &Captures| match HTML_ENTITIES_MAPPING.get(&cap[1]) {
187187
None => {
188188
error_message = format!("No entity named '{}'", &cap[0]);
189189
cap[0].to_string()

0 commit comments

Comments
 (0)