• Rob Pike's avatar
    text/template: fix handling of empty blocks · be5a201e
    Rob Pike authored
    This was a subtle bug introduced in the previous release's fix for
    issue 16156.
    
    The definition of empty template was broken, causing the answer
    to depend on the order of templates in the map.
    
    Fixes #16156 (for real).
    Fixes #19294.
    Fixes #19204.
    
    Change-Id: I1cd915c94534cad3116d83bd158cbc28700510b9
    Reviewed-on: https://go-review.googlesource.com/38420
    Run-TryBot: Russ Cox <rsc@golang.org>
    Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    be5a201e
template.go 6.78 KB