summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-04-10 15:44:34 +0200
committerAraq <rumpf_a@web.de>2019-04-10 15:44:34 +0200
commit26fc7d465a3fe9ba1ad2311810ce4e3c4d2d3a32 (patch)
treed46369acc41b4049fa1e931e0518b931fb6ba38e
parenta34ce2714a11595808cd8421636a89f44c1feb7b (diff)
downloadNim-26fc7d465a3fe9ba1ad2311810ce4e3c4d2d3a32.tar.gz
strutils.nim: fixes the indentation of formatEng
-rw-r--r--lib/pure/strutils.nim10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim
index 07a265915..6a35b3cf5 100644
--- a/lib/pure/strutils.nim
+++ b/lib/pure/strutils.nim
@@ -2498,11 +2498,11 @@ proc formatEng*(f: BiggestFloat,
     # we can be a bit more efficient through knowledge that there will never be
     # an exponent in this part.
     if trim:
-        while splitResult[1].endsWith("0"):
-          # Trim last character
-          splitResult[1].setLen(splitResult[1].len-1)
-        if splitResult[1].len() > 0:
-          result &= decimalSep & splitResult[1]
+      while splitResult[1].endsWith("0"):
+        # Trim last character
+        splitResult[1].setLen(splitResult[1].len-1)
+      if splitResult[1].len() > 0:
+        result &= decimalSep & splitResult[1]
     else:
       result &= decimalSep & splitResult[1]