|
||||||||
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 |
- [jbehave-dev] [jira] (JBEHAVE-854) Incorrect format... alexey ieshin (JIRA)
- [jbehave-dev] [jira] (JBEHAVE-854) Incorrect f... Ghislain Nadeau (JIRA)
- [jbehave-dev] [jira] (JBEHAVE-854) Incorrect f... Bence Olah (JIRA)
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;
}