We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d970456 commit 5e52d4dCopy full SHA for 5e52d4d
layout/src/main/java/com/itextpdf/layout/property/UnitValue.java
@@ -43,6 +43,8 @@ This file is part of the iText (R) project.
43
*/
44
package com.itextpdf.layout.property;
45
46
+import com.itextpdf.io.util.MessageFormatUtil;
47
+
48
/**
49
* A specialized class that holds a value and the unit it is measured in.
50
@@ -186,6 +188,6 @@ public int hashCode() {
186
188
187
189
@Override
190
public String toString() {
- return value + (unitType == PERCENT ? "%" : "pt");
191
+ return MessageFormatUtil.format((unitType == PERCENT ? "{0}%" : "{0}pt"), value);
192
}
193
0 commit comments