I'ld suggest this fix:

StepCreator.java:

private String replaceParameterValue(String stepText, Type type, String value) {
if (value != null) {
if (this.isTable(type)) { stepText = stepText.replace(value, PARAMETER_TABLE_START + value + PARAMETER_TABLE_END); } else {
// only mark non-empty string as parameter (JBEHAVE-656)
if (value.trim().length() != 0) { stepText = stepText.replace(value, PARAMETER_VALUE_START + value + PARAMETER_VALUE_END); }

//THIS LINE, Change replace() by replaceFirst()
stepText = stepText.replaceFirst("\n", PARAMETER_VALUE_NEWLINE);
}
}
return stepText;
}

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to