Page 1 of 1

Line breaks in

Posted: Mon Sep 27, 2021 2:44 pm
by xephon
Hi,

I have a very long command line with various $ask editor variables to model an Apache Ant based document wizard. The code works fine, but it is not very pretty formatted. Is there a trick to have line breaks and indentations in this window without creating an invalid command line?

Thanks
image.png
image.png (33.1 KiB) Viewed 981 times

Re: Line breaks in

Posted: Tue Sep 28, 2021 11:07 am
by alex_jitianu
Hello,

You can put an $ask variable on multiple lines and use indentation, for example:

Code: Select all

 ${ask(
    'message hello', 
    combobox, 
    (
        'real_value1':'rendered_value1';
        'real_valueN':'rendered_valueN'
    ), 
    'default')}
I should mention that it depends on Oxygen version, because in version 21.1 we introduced an improved engine for expanding and recognizing these variables. If you are running an older Oxygen version, the indentation support might be different.

The command line will not be affected because these variables are replaced with their value so there will be no new lines in the resulting command line.


Best regards,
Alex