mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-10 10:20:32 -06:00
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.
19 lines
893 B
JSON
19 lines
893 B
JSON
{
|
|
"name": "partial rewrite keeps neighbor",
|
|
"content": "BT /F1 12 Tf 14.4 TL 1 0 0 1 72 700 Tm (Alpha first row.) Tj T* (Alpha next row.) Tj ET BT /F1 12 Tf 14.4 TL 1 0 0 1 72 656.8 Tm (Neighbor stays.) Tj ET",
|
|
"steps": [
|
|
{"command": {"id": "edit.edit_text"}},
|
|
{"click_page": {"x": 120, "y": 704}},
|
|
{"type": {"text": "Alpha first row.\nTwo\nThree"}},
|
|
{"key": {"key": "Enter", "modifiers": ["command"]}},
|
|
{"click_page": {"x": 120, "y": 660}},
|
|
{"expect_editor": {"contains": "Neighbor stays.", "text": "Neighbor stays."}},
|
|
{"click_page": {"x": 120, "y": 704}},
|
|
{"type": {"text": "Alpha first row.\nTwo\nFour"}},
|
|
{"key": {"key": "Enter", "modifiers": ["command"]}},
|
|
{"click_page": {"x": 120, "y": 660}},
|
|
{"expect_editor": {"contains": "Neighbor stays.", "text": "Neighbor stays."}},
|
|
{"shot": {"name": "partial-rewrite-keeps-neighbor"}}
|
|
]
|
|
}
|