From 4f3d4c82fbe1bcabec22be124ccaac6a9c2b6225 Mon Sep 17 00:00:00 2001 From: David Wendt Date: Fri, 12 Jun 2020 22:41:28 -0400 Subject: [PATCH] For some reason, Flash does not respect `
` at all, so we won't, either. It *does*, however, respect `` (which does the exact same thing), as well as `\n` (which makes absolutely no sense in HTML, normally that would get stripped out). --- core/src/html/text_format.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/core/src/html/text_format.rs b/core/src/html/text_format.rs index dc3125bea..11a639754 100644 --- a/core/src/html/text_format.rs +++ b/core/src/html/text_format.rs @@ -1149,15 +1149,10 @@ impl FormatSpans { for step in tree.as_node().walk().unwrap() { match step { - Step::In(node) - if node.tag_name().unwrap().node_name().as_str() == "br" - || node.tag_name().unwrap().node_name().as_str() == "sbr" => - { + Step::In(node) if node.tag_name().unwrap().node_name().as_str() == "sbr" => { self.replace_text(self.text.len(), self.text.len(), "\n", format_stack.last()); } - Step::Out(node) - if node.tag_name().unwrap().node_name().as_str() == "br" - || node.tag_name().unwrap().node_name().as_str() == "sbr" => {} + Step::Out(node) if node.tag_name().unwrap().node_name().as_str() == "sbr" => {} Step::In(node) => format_stack.push(TextFormat::from_presentational_markup( node, format_stack