You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
following features support for multiline strings will go a long way.
support for substitution for multi-line strings
support for scala's stripMargin like feature.
ie remove leading and trailing white-spaces without relatively changing the indentation between each line. This is required if we have any indentation sensitive content in the leaf string node of the config, say for eg a python script. below I have used triple quotes to distinguish this from normal multiline string.
conf = {
language = python
code = '''
|for item in range(10)
| <some expression>
'''
}
The text was updated successfully, but these errors were encountered:
rogue-one
changed the title
multiline strings
multiline strings enhancements
Apr 24, 2016
I don't really know how to do stripmargin. There are limits to what we can do without making HOCON into a programming language... but maybe there's a clever solution. There is a workaround now I believe (use multiple string literals and allow them to be concatenated) which doesn't seem terrible, so I don't know if we'd want to do anything complex here. But it could be worth exploring options and proposing how it would work.
following features support for multiline strings will go a long way.
ie remove leading and trailing white-spaces without relatively changing the indentation between each line. This is required if we have any indentation sensitive content in the leaf string node of the config, say for eg a python script. below I have used triple quotes to distinguish this from normal multiline string.
The text was updated successfully, but these errors were encountered: