Line breaks in

Oxygen general issues.
xephon
Posts: 140
Joined: Mon Nov 24, 2014 1:49 pm
Location: Greven/Germany

Line breaks in

Post 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 980 times
stefan-jung.org – Your DITA/DITA-OT XML consultant
alex_jitianu
Posts: 1009
Joined: Wed Nov 16, 2005 11:11 am

Re: Line breaks in

Post 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
Post Reply