[
http://jira.magnolia-cms.com/browse/MGNLFORM-123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jan Haderka reopened MGNLFORM-123:
----------------------------------
Not convinced by the current fix.
According to Java documentation:
{quote}
Line terminators
A line terminator is a one- or two-character sequence that marks the end of a
line of the input character sequence. The following are recognized as line
terminators:
A newline (line feed) character ('\n'),
A carriage-return character followed immediately by a newline character
("\r\n"),
A standalone carriage-return character ('\r'),
A next-line character ('\u0085'),
A line-separator character ('\u2028'), or
A paragraph-separator character ('\u2029).
{quote}
so whatever solution we choose should be able to split by all of those
terminators not just by one out of 6 possible.
FM supports flags for split so you can use
{code}
.split("regex", rm)
{code}
({{r}} for regex and {{m}} for multiline matching) and construct regex that
would match all of those separators.
> Selection Checkbox, select (single/multiple) and radio buttons don't allow
> multiple selection
> ---------------------------------------------------------------------------------------------
>
> Key: MGNLFORM-123
> URL: http://jira.magnolia-cms.com/browse/MGNLFORM-123
> Project: Magnolia Form Module
> Issue Type: Bug
> Affects Versions: 1.4.1
> Environment: 4.5.1 EE
> Reporter: Eric Hechinger
> Assignee: Milan Divilek
> Priority: Major
> Fix For: 1.4.3
>
> Attachments: formSelection-DECODED.ftl, formSelection.ftl
>
>
> Not able to define multiple select with the recomended syntax:
> bar:bar
> baz:baz
> bat:bat
> Just display the first entry.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------