Browse Source

Fix formatting of companion hint values in the Translate element

Marcin Ziąbek 3 months ago
parent
commit
8fde2cb9c8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/QuestPDF/Elements/Translate.cs

+ 1 - 1
Source/QuestPDF/Elements/Translate.cs

@@ -20,7 +20,7 @@ namespace QuestPDF.Elements
 
         internal override string? GetCompanionHint()
         {
-            return string.Join("   ", GetOptions().Where(x => x.value != 0).Select(x => $"{x.Label}={x.value:F1}"));
+            return string.Join("   ", GetOptions().Where(x => x.value != 0).Select(x => $"{x.Label}={x.value:0.#}"));
             
             IEnumerable<(string Label, float value)> GetOptions()
             {