Stop dumbindent collapsing consecutive blank lines

This commit is contained in:
Nigel Tao committed 2020-06-10 12:22:41 +10:00
1 parent ed48514f30
commit 58c0862c50
4 files changed
+39 -20

No files matched your search

+4 -1
View File
@@ -368,10 +368,13 @@ func (g *gen) writeFuncImplPrologue(b *buffer) error {
b.writes("\n")
// Generate the local variables.
oldLenB := len(*b)
if err := g.writeVars(b, &g.currFunk, false); err != nil {
return err
}
b.writes("\n")
if oldLenB != len(*b) {
b.writes("\n")
}
if g.currFunk.derivedVars != nil {
for _, o := range g.currFunk.astFunc.In().Fields() {