Skip to content

Commit 520613c

Browse files
committed
Use TrimEnd()
1 parent e7259da commit 520613c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UnitsNet/QuantityFormatter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public static string Format<TUnitType>(IQuantity<TUnitType> quantity, string for
125125
public static string Format<TUnitType>(IQuantity<TUnitType> quantity, string format, IFormatProvider? formatProvider)
126126
where TUnitType : Enum
127127
{
128-
return FormatUntrimmed(quantity, format, formatProvider).Trim();
128+
return FormatUntrimmed(quantity, format, formatProvider).TrimEnd();
129129
}
130130

131131
private static string FormatUntrimmed<TUnitType>(IQuantity<TUnitType> quantity, string format, IFormatProvider? formatProvider)

0 commit comments

Comments
 (0)