Files
pdfcraft/crates/ui-egui/tests/play/blank-line-edit.json
T
ihsan mokhlisse 4ebb575a88 M7: keep a repeated step without TL, and a partial rewrite's neighbour (#2517)
Three or more rows at one repeated step stay one paragraph when the file has no TL, which is how LibreOffice writes each line. A rewrite that leaves a source row still marks the whole paragraph, so the neighbour survives a second edit. Dragging the box width keeps the line breaks.
2026-10-29 10:11:18 +01:00

18 lines
1.6 KiB
JSON

{
"name": "blank line edit",
"content": "BT /F1 14 Tf 72 740 Td (1. Repeated step, no TL. Click Two.) Tj ET BT /F1 12 Tf 72 700 Td (One) Tj ET BT /F1 12 Tf 72 672.4 Td (Two) Tj ET BT /F1 12 Tf 72 644.8 Td (Three) Tj ET BT /F1 14 Tf 72 590 Td (2. Blank line. Edit the first paragraph.) Tj ET BT /F1 12 Tf 14.4 TL 1 0 0 1 72 550 Tm (First paragraph, first row.) Tj T* (First paragraph, second row.) Tj ET BT /F1 12 Tf 14.4 TL 1 0 0 1 72 506.8 Tm (Second paragraph, first row.) Tj T* (Second paragraph, second row.) Tj ET BT /F1 14 Tf 72 450 Td (3. Add a row under Alpha. Neighbor stays.) Tj ET BT /F1 12 Tf 14.4 TL 1 0 0 1 72 410 Tm (Alpha first row.) Tj T* (Alpha next row.) Tj ET BT /F1 12 Tf 14.4 TL 1 0 0 1 72 366.8 Tm (Neighbor stays.) Tj ET",
"steps": [
{"command": {"id": "edit.edit_text"}},
{"click_page": {"x": 140, "y": 554}},
{"expect_editor": {"contains": "First paragraph, first row", "text": "First paragraph, first row.\nFirst paragraph, second row."}},
{"type": {"text": "First paragraph, first row.\nChanged."}},
{"key": {"key": "Enter", "modifiers": ["command"]}},
{"expect_together": {"parts": ["First paragraph, first row", "Changed"]}},
{"expect_together": {"parts": ["Second paragraph, first row", "Second paragraph, second row"]}},
{"expect_apart": {"text": "Second paragraph, first row", "not": "Changed"}},
{"click_page": {"x": 140, "y": 510}},
{"expect_editor": {"contains": "Second paragraph, first row", "text": "Second paragraph, first row.\nSecond paragraph, second row."}},
{"shot": {"name": "blank-line-edit"}}
]
}