aboutsummaryrefslogtreecommitdiff
path: root/ber
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-07-14 14:22:50 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-07-14 14:22:50 +0200
commitb1def9e9ac3d610541f7ac4804947e7b872e9106 (patch)
tree3e58a35ffc9771b8bc62d7b7ff60b57f414fcf8d /ber
parent5643007803eba0a12590618fc6c810754c716bad (diff)
Split in groups
Diffstat (limited to 'ber')
-rw-r--r--ber/bits.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/ber/bits.go b/ber/bits.go
index 4eb6c05..8895e92 100644
--- a/ber/bits.go
+++ b/ber/bits.go
@@ -20,7 +20,10 @@ func (bs Bits) String() (s string) {
true: "1",
false: "0",
}
- for _, bit := range bs {
+ for i, bit := range bs {
+ if i > 0 && i%4 == 0 {
+ s += " "
+ }
s += bmap[bit]
}
return