From 7001f8e39ffaedc406985ac4c876874a513809d9 Mon Sep 17 00:00:00 2001 From: Justin Brooks Date: Fri, 18 Oct 2024 19:27:32 -0400 Subject: [PATCH] Ensure digit grouping isn't used --- .../kotlin/com/jzbrooks/vgo/svg/ScalableVectorGraphicWriter.kt | 1 + vgo/src/main/kotlin/com/jzbrooks/vgo/vd/VectorDrawableWriter.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/vgo/src/main/kotlin/com/jzbrooks/vgo/svg/ScalableVectorGraphicWriter.kt b/vgo/src/main/kotlin/com/jzbrooks/vgo/svg/ScalableVectorGraphicWriter.kt index e6a91a29..c9e15eae 100644 --- a/vgo/src/main/kotlin/com/jzbrooks/vgo/svg/ScalableVectorGraphicWriter.kt +++ b/vgo/src/main/kotlin/com/jzbrooks/vgo/svg/ScalableVectorGraphicWriter.kt @@ -31,6 +31,7 @@ class ScalableVectorGraphicWriter( maximumFractionDigits = 2 // todo: parameterize? minimumIntegerDigits = 0 isDecimalSeparatorAlwaysShown = false + isGroupingUsed = false roundingMode = RoundingMode.HALF_UP decimalFormatSymbols = DecimalFormatSymbols().apply { diff --git a/vgo/src/main/kotlin/com/jzbrooks/vgo/vd/VectorDrawableWriter.kt b/vgo/src/main/kotlin/com/jzbrooks/vgo/vd/VectorDrawableWriter.kt index 12e8ab2f..ec59e289 100644 --- a/vgo/src/main/kotlin/com/jzbrooks/vgo/vd/VectorDrawableWriter.kt +++ b/vgo/src/main/kotlin/com/jzbrooks/vgo/vd/VectorDrawableWriter.kt @@ -33,6 +33,7 @@ class VectorDrawableWriter( maximumFractionDigits = 2 // todo: parameterize? minimumIntegerDigits = 0 isDecimalSeparatorAlwaysShown = false + isGroupingUsed = false roundingMode = RoundingMode.HALF_UP decimalFormatSymbols = DecimalFormatSymbols().apply {