From 97590360816aa3202bbae81b2fb18a08db8ced9e Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 21 Feb 2019 01:55:40 +0300 Subject: [PATCH] Make store_bytes_field output prettier. GitOrigin-RevId: 992b7cb8875bb3238484c4a254b3498266233939 --- tdutils/td/utils/tl_storers.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tdutils/td/utils/tl_storers.h b/tdutils/td/utils/tl_storers.h index c7283d0e..db3cd2a5 100644 --- a/tdutils/td/utils/tl_storers.h +++ b/tdutils/td/utils/tl_storers.h @@ -227,12 +227,10 @@ class TlStorerToString { int b = value[static_cast(i)] & 0xff; result += hex[b >> 4]; result += hex[b & 15]; - if (i + 1 != len) { - result += ' '; - } + result += ' '; } if (len < value.size()) { - result.append(" ..."); + result.append("..."); } result += '}'; store_field_end();