summaryrefslogtreecommitdiff
path: root/xgbgen/context.go
diff options
context:
space:
mode:
authoraarzilli <[email protected]>2014-05-02 15:09:23 +0200
committeraarzilli <[email protected]>2014-05-02 15:09:23 +0200
commitcdbc8241c4be92fd4fbb6b7b819e84dce4a06850 (patch)
tree46fa3d240fa2e2e4704c972f814ad94e4bc6ce72 /xgbgen/context.go
parentefcb6d44d2722be3a77fe5292f5bfd5e73ed7e48 (diff)
Fix Issue #21: automatic calculation of alignment padding after lists
Diffstat (limited to 'xgbgen/context.go')
-rw-r--r--xgbgen/context.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/xgbgen/context.go b/xgbgen/context.go
index af0f598..f64f339 100644
--- a/xgbgen/context.go
+++ b/xgbgen/context.go
@@ -50,6 +50,8 @@ func (c *Context) Morph(xmlBytes []byte) {
// Translate XML types to nice types
c.protocol = parsedXml.Translate(nil)
+ c.protocol.AddAlignGaps()
+
// Start with Go header.
c.Putln("// Package %s is the X client API for the %s extension.",
c.protocol.PkgName(), c.protocol.ExtXName)