mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 16:52:18 +01:00
Stop dumbindent collapsing consecutive blank lines
This commit is contained in:
1 parent
ed48514f30
commit
58c0862c50
4 files changed
+39
-20
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user