mirror of
https://github.com/frosch95/SmartCSV.fx.git
synced 2026-04-11 13:38:23 +02:00
improve the design of the validation error list
This commit is contained in:
@@ -57,7 +57,15 @@ public class I18nValidationUtil {
|
||||
}
|
||||
}
|
||||
|
||||
return message.toString();
|
||||
if (!validationMessages.isEmpty()) {
|
||||
return cutOffLastLineBreak(message.toString());
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
private static String cutOffLastLineBreak(String message) {
|
||||
return message.substring(0, message.length()-1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user