From cdc444844311ffb00d040fd1908d1b1b3e4dbd2f Mon Sep 17 00:00:00 2001 From: FerroO2000 Date: Tue, 30 Jul 2024 12:04:14 +0200 Subject: [PATCH] fix: dbc whitespaces --- pkg/dbc_writer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/dbc_writer.go b/pkg/dbc_writer.go index 739ddbc..2927dfb 100644 --- a/pkg/dbc_writer.go +++ b/pkg/dbc_writer.go @@ -93,7 +93,7 @@ func (w *DBCWriter) writeNodes(f *file, nodes map[string]*Node) { nodeNames = append(nodeNames, nodeName) } - str := []string{sym.DBCNode, ":"} + str := []string{sym.DBCNode + ":"} str = append(str, nodeNames...) f.print(str...) f.print() @@ -150,7 +150,7 @@ func (w *DBCWriter) writeSignal(f *file, sig *Signal) { muxStr += "M" } - f.print("\t", sym.DBCSignal, sig.signalName, muxStr, ":", byteDef, multiplier, valueRange, unit, receivers) + f.print(" ", sym.DBCSignal, sig.signalName, muxStr, ":", byteDef, multiplier, valueRange, unit, receivers) } func (w *DBCWriter) writeMuxGroup(f *file, messages map[string]*Message) {