Line breaks in

<oXygen/> general issues.
xephon
Posts: 107
Joined: Mon Nov 24, 2014 1:49 pm
Location: Greven/Germany

Line breaks in

Post by xephon » Mon Sep 27, 2021 2:44 pm

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 105 times
Open-source DITA-XML solutions: https://github.com/doctales

alex_jitianu
Posts: 867
Joined: Wed Nov 16, 2005 11:11 am

Re: Line breaks in

Post by alex_jitianu » Tue Sep 28, 2021 11:07 am

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