summary refs log tree commit diff stats
path: root/lib/system/repr.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/system/repr.nim')
-rw-r--r--lib/system/repr.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/system/repr.nim b/lib/system/repr.nim
index 318e95ebb..ae51a4aab 100644
--- a/lib/system/repr.nim
+++ b/lib/system/repr.nim
@@ -325,5 +325,6 @@ when not defined(useNimRtl):
     else:
       var p = p
       reprAux(result, addr(p), typ, cl)
-    add result, "\n"
+    when defined(nimLegacyReprWithNewline): # see PR #16034
+      add result, "\n"
     deinitReprClosure(cl)