Explorar el Código

tweak: always add spacing comments between textnodes

Jonathan Kelley hace 3 años
padre
commit
b3a774b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/ssr/src/lib.rs

+ 1 - 1
packages/ssr/src/lib.rs

@@ -144,7 +144,7 @@ impl<'a> TextRenderer<'a, '_> {
     ) -> std::fmt::Result {
         match &node {
             VNode::Text(text) => {
-                if *last_node_was_text && self.cfg.pre_render {
+                if *last_node_was_text {
                     write!(f, "<!--spacer-->")?;
                 }