From 384cc6e74b64635e93c8d16e9ab4518ba4beba8a Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Thu, 16 Mar 2023 12:21:29 -0700 Subject: [PATCH] [ci-base] apply caps lock to table/class headers --- d2graph/d2graph.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d2graph/d2graph.go b/d2graph/d2graph.go index 35de7648a..6bd17ca84 100644 --- a/d2graph/d2graph.go +++ b/d2graph/d2graph.go @@ -1445,7 +1445,7 @@ func (g *Graph) Texts() []*d2target.MText { for _, obj := range g.Objects { if obj.Attributes.Label.Value != "" { text := obj.Text() - if capsLock && obj.Class == nil && obj.SQLTable == nil { + if capsLock { text.Text = strings.ToUpper(text.Text) } texts = appendTextDedup(texts, text)