Skip to content

Commit 2d23eac

Browse files
committed
Revert "Trim ToString() for units without abbreviation"
This reverts commit cbee202.
1 parent cbee202 commit 2d23eac

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

UnitsNet/QuantityFormatter.cs

-6
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,6 @@ public static string Format<TUnitType>(IQuantity<TUnitType> quantity, string for
124124
/// <returns>The string representation.</returns>
125125
public static string Format<TUnitType>(IQuantity<TUnitType> quantity, string format, IFormatProvider? formatProvider)
126126
where TUnitType : Enum
127-
{
128-
return FormatUntrimmed(quantity, format, formatProvider).Trim();
129-
}
130-
131-
private static string FormatUntrimmed<TUnitType>(IQuantity<TUnitType> quantity, string format, IFormatProvider? formatProvider)
132-
where TUnitType : Enum
133127
{
134128
formatProvider ??= CultureInfo.CurrentUICulture;
135129

0 commit comments

Comments
 (0)