Compile every format at link

This commit is contained in:
2026-09-28 02:53:08 +02:00
committed by Lillem4n
parent e11ee9ec0e
commit 306b88ef56
10 changed files with 59 additions and 61 deletions
+5 -1
View File
@@ -144,7 +144,11 @@ func operandDraw(n node, into map[node]bool) {
// isFixed is a string that varies nothing: fixed text with no fields to read into.
func isFixed(n node) bool {
t, ok := n.(*template)
return ok && t.fixed && len(t.fields) == 0
if !ok {
return false
}
_, fixed := t.fixedText()
return fixed && len(t.fields) == 0
}
// renders reports whether rendering n can reach anything in want, following the