No Description

16-normalize_whitespace.json 774B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {
  2. "name": "Normalize whitespace",
  3. "options": {
  4. "normalizeWhitespace": true
  5. },
  6. "html": "Line one\n<br>\t \r\n\f <br>\nline two<font><br> x </font>",
  7. "expected": [
  8. {
  9. "data": "Line one ",
  10. "type": "text"
  11. },
  12. {
  13. "type": "tag",
  14. "name": "br",
  15. "attribs": {}
  16. },
  17. {
  18. "data": " ",
  19. "type": "text"
  20. },
  21. {
  22. "type": "tag",
  23. "name": "br",
  24. "attribs": {}
  25. },
  26. {
  27. "data": " line two",
  28. "type": "text"
  29. },
  30. {
  31. "type": "tag",
  32. "name": "font",
  33. "attribs": {},
  34. "children": [
  35. {
  36. "type": "tag",
  37. "name": "br",
  38. "attribs": {}
  39. },
  40. {
  41. "data": " x ",
  42. "type": "text"
  43. }
  44. ]
  45. }
  46. ]
  47. }