Behaviour SwRS-MDOKFSTUDIO-PALETTE-136
Label writes one label line above the block
When the writer presses Label, the extension SHALL write the line `(label-name)=` above the first line of the text with label-name selected, and make no edit when the text already starts with a label line.
Part of StRS-MDOKFSTUDIO-PALETTE-021, outside the paths drawn on its map.
Scenarios 3
The situations the tests check; open one to read it.
nominalNew label
Giventhe text Para and text
WhenLabel is pressed
Then`(label-name)=` is the first line and label-name is selected
refusalAlready labelled
Givena text that starts with (x)=
WhenLabel is pressed
Thenno edit is produced
boundaryLeading blank lines
| Input | Outcome |
|---|---|
| Blank lines at the start of the text | They are skipped before the label is written |