When including a conditional expression to create dynamic SQL using "choose" and enclosed "when" and "otherwise" tags, a Scala MatchError is thrown if there is any whitespace between the tags.
E.g. this works ok:
<choose><when test="sometest">xx</when><otherwise>yy</otherwise></choose>
but this doesn't and throws a MatchError in line 74 of DynamicSQLBuilder.scala:
<choose>
<when test="sometest">xx</when>
<otherwise>yy</otherwise>
</choose>