From 1221d7f18bab75f55002c7630caac01dd0a190d4 Mon Sep 17 00:00:00 2001 From: Paolo Calao Date: Tue, 24 May 2022 00:37:17 +0200 Subject: [PATCH] tools: monochrome remove spaces from c++ --- tools/monochrome/monochrome.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/monochrome/monochrome.go b/tools/monochrome/monochrome.go index b574f96..d0f1557 100644 --- a/tools/monochrome/monochrome.go +++ b/tools/monochrome/monochrome.go @@ -14,13 +14,13 @@ type Monochrome struct { } func (m *Monochrome) ToCpp() string { - s := "const uint8_t image[] = { " + s := "const uint8_t image[] = {" s += fmt.Sprintf("0x%02x, 0x%02x, ", m.width, m.height) for _, b := range m.val { s += fmt.Sprintf("0x%02x, ", b) } s = strings.TrimRight(s, ", ") - s += " };" + s += "};" return s }