RIDE icon indicating copy to clipboard operation
RIDE copied to clipboard

If Else statements in ride are displayed on one long line after a reload or ride restart

Open moliveras opened this issue 6 years ago • 1 comments

System info: Centos 7 python 2.7.5 robotframework 3.1.2 ride 1.7.4b2

Create a IF ELSE statement as follows:

image

IF Format Test
    ${var}    Set Variable    kiwi
    Run Keyword If    '${var}' == 'apple'    Log    It's a red fruit
    ...    ELSE IF    '${var}' == 'banana'    Log    It's a yellow fruit
    ...    ELSE    Log    Its not an apple or a banana
    [Teardown]

After I reload the test under the File menu or restart ride, the ride UI displays the entire Keyword on one line. image

Everything works as expected, however it is much easier to read when displayed on multiple lines, especially if there are several conditions. Would it be possible to preserve the display in ride using multiple lines?

BTW - This version This is a huge improvement over 1.5.2.1!

moliveras avatar Oct 03 '19 20:10 moliveras

@moliveras The parsing of files is done using robot core libraries (in this case, tidy). That problem will disappear with changes in that code. Please see this issue at Robot Framework project.

HelioGuilherme66 avatar Oct 18 '19 23:10 HelioGuilherme66

This is now fixed on v2.0.8dev5.

HelioGuilherme66 avatar Aug 25 '23 12:08 HelioGuilherme66