From 569d62faa93a7dda0acc0458964fb4a80c258f28 Mon Sep 17 00:00:00 2001 From: sergeych Date: Wed, 15 Mar 2023 10:51:10 +0100 Subject: [PATCH] cosmetics --- src/commonMain/kotlin/net.sergeych.bintools/simple_codecs.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/commonMain/kotlin/net.sergeych.bintools/simple_codecs.kt b/src/commonMain/kotlin/net.sergeych.bintools/simple_codecs.kt index 0dd5b09..ce01468 100644 --- a/src/commonMain/kotlin/net.sergeych.bintools/simple_codecs.kt +++ b/src/commonMain/kotlin/net.sergeych.bintools/simple_codecs.kt @@ -103,8 +103,7 @@ fun ByteArray.toDumpLines(wide: Boolean = false): List { while (from < max) { val ch = this[from++].toInt() when { - ch == ' '.code -> b.append('\u25AD') - (ch > ' '.code && ch < 127) -> b.append(ch.toChar()) + (ch >= ' '.code && ch < 127) -> b.append(ch.toChar()) else -> b.append('.') } if( (from % lineSize) == lineSize/2 )