Commits

Anonymous committed 95b2c1b

fixed serious bug in PDF2SVGUtil;hopefully last tweak on this branch

  • Participants
  • Parent commits 9454d6c

Comments (0)

Files changed (1)

File src/main/java/org/xmlcml/pdf2svg/util/PDF2SVGUtil.java

 		List<String> sList = new ArrayList<String>();
 		for (int i = 0; i <ss.length; i++) {
 			if (ss[i].trim().length() == 0){
-				sList.add("");
+//				sList.add("");
 			} else if (ss[i].equals(DOT)){
 				continue;
 			} else if (ss[i].equals(DOT_DOT)) {
 		if (resource.endsWith(CMLConstants.S_SLASH)) {
 			sb.append(CMLConstants.S_SLASH);
 		}
-		return sb.toString();
+		String sss = sb.toString();
+		if (sss.contains("//")) {
+			throw new RuntimeException("BUG //");
+		}
+		return sss;
 	}