From 45918f43224559f1920b6e10b4ee237d340a63e6 Mon Sep 17 00:00:00 2001 From: Lars Karlslund Date: Wed, 22 Dec 2021 07:03:08 +0100 Subject: [PATCH] Honor ignoreblanks for SetFlex in string slices --- modules/engine/object.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/engine/object.go b/modules/engine/object.go index 6c935af..cb00fca 100644 --- a/modules/engine/object.go +++ b/modules/engine/object.go @@ -590,6 +590,9 @@ func (o *Object) SetFlex(flexinit ...interface{}) { continue } for _, s := range *v { + if ignoreblanks && s == "" { + continue + } data = append(data, AttributeValueString(s)) } case *string: