Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,10 @@ public String toEnumVarName(String name, String datatype) {
return "EMPTY";
}

if(name.trim().length() == 0) {
return "SPACE_" + name.length();
}

// for symbol, e.g. $, #
if (getSymbolName(name) != null) {
return (getSymbolName(name)).toUpperCase(Locale.ROOT);
Expand Down Expand Up @@ -739,6 +743,11 @@ public String escapeText(String input) {
return input;
}

// If the string contains only "trim-able" characters, don't trim it
if(input.trim().length() == 0) {
return input;
}

// Trim the string to avoid leading and trailing spaces.
return super.escapeText(input).trim();
}
Expand Down