mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-24 01:46:07 +00:00
#1548 TTF export - correctly handle duplicate unicode codes
#1548 correctly handle empty generated file names
This commit is contained in:
@@ -843,13 +843,15 @@ public class Helper {
|
||||
}
|
||||
}
|
||||
|
||||
char lastChar = sb.charAt(sb.length() - 1);
|
||||
if (lastChar == ' ') {
|
||||
sb.setLength(sb.length() - 1);
|
||||
sb.append("%20");
|
||||
} else if (lastChar == '.') {
|
||||
sb.setLength(sb.length() - 1);
|
||||
sb.append("%2E");
|
||||
if (!sb.isEmpty()) {
|
||||
char lastChar = sb.charAt(sb.length() - 1);
|
||||
if (lastChar == ' ') {
|
||||
sb.setLength(sb.length() - 1);
|
||||
sb.append("%20");
|
||||
} else if (lastChar == '.') {
|
||||
sb.setLength(sb.length() - 1);
|
||||
sb.append("%2E");
|
||||
}
|
||||
}
|
||||
|
||||
str = sb.toString();
|
||||
|
||||
Reference in New Issue
Block a user