Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-BLOCK-269

Removing a blank-line block removes that one blank line

When the writer deletes a blank-line block with Delete, Backspace or its Delete block button, the extension SHALL remove that one blank line, keep the separator and the other blank lines in one text edit and one undo step, keep the line endings, refuse a stale line next to the block, and select the blank-line block now at that place, else the one just above it in the same run, else nothing, so that a further Delete or Backspace removes no text. A run of empty quote lines keeps its first line byte for byte, and the removal keeps the final line break of the text, or its absence.

Another outcome at step 2 of path 3 in StRS-MDOKFSTUDIO-BLOCK-011, in the state “A blank-line block is shown”.

Part of StRS-MDOKFSTUDIO-BLOCK-025, outside the paths drawn on its map.

Scenarios 4

The situations the tests check; open one to read it.

nominalRemoving a blank line
Givena selected blank-line block, one of three shown
Whenthe writer presses Delete or Backspace, or clicks its Delete block button
Thenthe host removes that one line in one text edit and one undo step, keeps the other blank lines, answers previewBlocksResult with op delete-blank-lines, and the blank-line block now at that place is selected (else the one just above it in the same run, else nothing)
nominalThe last blank line of a run
Givena selected blank-line block, the only one of its run
Whenthe writer presses Delete, and then Delete or Backspace again
Thenthe first removes that line and nothing is selected afterwards, so the further key presses post nothing and remove no text
nominalRemoving a blank line inside a list
Givena blank line between two list items, or inside a list item, and its blank-line block selected
Whenthe writer presses Delete or Backspace, or clicks its Delete block button
Thenonly that line goes, nothing else changes, the list is still one list, and the selection goes to the blank-line block now at that place in the same run, else the one just above it, else nothing
nominalRefusals
Givena line the text no longer has as a blank line, a failed edit, or an open block edit on the host
WhenpreviewBlankRunDelete arrives
Thenthe document does not change and the refusal is answered

Implemented in 6

Tested by 12