Content Automation bug for multi-line properties ?
It seems there is a bug in the Content Automation Webservice when I try to set multi-line values. The documentation says that we should use a \ at the end of each line. That's what I'm doing but it doesn't work : the new line character is removed. I watched the source code in org.nuxeo.ecm.automation.core.util.Properties and I think I've found the bug line 71 (should be prevLine + “\n” + line)
The '' character at the end of a line is not for inserting new lines, but for wrapping the text in multiple lines, to help you when editing a properties file (same behaviour than when using the java.util.Properties class). Unfortunately there is no way to escape special characters ('\n' for instance) like in the java properties files. But you can try using an alternative formatting supported by automation to control new lines inside your text:
<param type="properties" name="properties"> <property key="dc:title">My Doc</property> <property key="dc:description">My Doc desc (try inserting your text formatting here)</property> </param>
Thanks for the quick answer. Sorry, I've just noticed that the character antislash wasn't showing in my post. Ok I understand. But I'm using the content automation web service (with my own php client). I have to send params encoded in json so I can't use this xml syntax, can I ?