Files
webstudio/apps/builder/app/shared
Oleg Isonen fc70898513 fix: Preserve whitespace between sibling elements (#5718)
Treat whitespace-only text nodes between element siblings as part of the
previous element instead of creating a separate text node.
generateFragmentFromHtml now detects when a text node consisting only of
space appears between two elements and appends that space to the
previous instance's last text child (if present), avoiding creation of a
standalone text child. Added a regression test in plugin-html.test.tsx
to verify pasted HTML like `<span>✓</span> <span>text</span>` preserves
the space and results in two span instances (no separate text node),
ensuring text-content control remains correct in the settings panel.
2026-04-25 19:42:42 +02:00
..
2023-05-03 00:00:16 +02:00
2026-02-10 23:13:43 +01:00
2026-04-08 21:58:20 +02:00
2026-04-08 21:58:20 +02:00
2026-04-08 21:58:20 +02:00
2026-04-08 21:58:20 +02:00
2023-05-13 11:52:03 +04:00
2026-02-10 23:13:43 +01:00
2024-08-24 08:58:54 +03:00
2024-02-13 20:12:09 +01:00
2025-08-09 15:14:22 +02:00
2026-04-18 13:18:37 +02:00