[ci-base] apply caps lock to table/class headers

This commit is contained in:
Alexander Wang 2023-03-16 12:21:29 -07:00
parent 1c67286f85
commit 384cc6e74b
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE

View file

@ -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)