Actualizacion maquina principal
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / domhandler / test / cases / 16-normalize_whitespace.json
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/domhandler/test/cases/16-normalize_whitespace.json b/.config/coc/extensions/node_modules/coc-prettier/node_modules/domhandler/test/cases/16-normalize_whitespace.json
new file mode 100644 (file)
index 0000000..d4490af
--- /dev/null
@@ -0,0 +1,47 @@
+{
+  "name": "Normalize whitespace",
+  "options": {
+    "normalizeWhitespace": true
+  },
+  "html": "Line one\n<br>\t  \r\n\f  <br>\nline two<font><br> x </font>",
+  "expected": [
+    {
+      "data": "Line one ",
+      "type": "text"
+    },
+    {
+      "type": "tag",
+      "name": "br",
+      "attribs": {}
+    },
+    {
+      "data": " ",
+      "type": "text"
+    },
+    {
+      "type": "tag",
+      "name": "br",
+      "attribs": {}
+    },
+    {
+      "data": " line two",
+      "type": "text"
+    },
+    {
+      "type": "tag",
+      "name": "font",
+      "attribs": {},
+      "children": [
+        {
+          "type": "tag",
+          "name": "br",
+          "attribs": {}
+        },
+        {
+          "data": " x ",
+          "type": "text"
+        }
+      ]
+    }
+  ]
+}
\ No newline at end of file