Update JLNK.java

Check if string ends with \ and add it if it does not.  Paths were not being returned properly
This commit is contained in:
Mark McKinnon 2023-03-18 11:53:30 -04:00
parent 3f3f873525
commit 8e63a9b742

View File

@ -292,7 +292,16 @@ public class JLNK {
} else if (linkTargetIdList != null && !linkTargetIdList.isEmpty()) {
String ret = "";
for (String s : linkTargetIdList) {
ret += s;
if (s.endsWith("\\")) {
ret += s;
} else {
if (ret.endsWith("\\")) {
ret +=s;
} else {
ret += "\\";
ret += s;
}
}
}
return ret;
}