File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ type TrimNode struct {
178
178
* ChildrenNode
179
179
Name string
180
180
Prefix string
181
+ Suffix string
181
182
PrefixOverrides []string
182
183
SuffixOverrides []string
183
184
}
@@ -202,6 +203,9 @@ func (n *TrimNode) Scan(start *xml.StartElement) error {
202
203
if attr .Name .Local == "prefix" {
203
204
n .Prefix = attr .Value
204
205
}
206
+ if attr .Name .Local == "suffix" {
207
+ n .Suffix = attr .Value
208
+ }
205
209
if attr .Name .Local == "prefixOverrides" {
206
210
n .PrefixOverrides = strings .Split (attr .Value , "|" )
207
211
}
@@ -233,6 +237,7 @@ func (n *TrimNode) GetStmt(ctx *Context) (string, error) {
233
237
buff .WriteString (n .Prefix )
234
238
buff .WriteString (" " )
235
239
buff .WriteString (body )
240
+ buff .WriteString (n .Suffix )
236
241
return buff .String (), nil
237
242
}
238
243
You can’t perform that action at this time.
0 commit comments