Skip to content

Commit e99dbe9

Browse files
committed
Squash multiple spaces into one if necessary.
DEVSIX-2044
1 parent 0b9c186 commit e99dbe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

svg/src/main/java/com/itextpdf/svg/renderers/impl/PathSvgNodeRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ private Collection<IPathShape> getShapes() {
248248
List<IPathShape> shapes = new ArrayList<>();
249249

250250
for (String parsedResult : parsedResults) {
251-
String[] pathProperties = parsedResult.split(SPACE_CHAR);
251+
String[] pathProperties = parsedResult.split(" +");
252252
IPathShape previousShape = shapes.size() == 0 ? null : shapes.get(shapes.size() - 1);
253253
List<IPathShape> operatorShapes = processPathOperator(pathProperties, previousShape);
254254
shapes.addAll(operatorShapes);

0 commit comments

Comments
 (0)