(ctx *xmlContext)
| 50 | } |
| 51 | |
| 52 | func (c *xmlEndElement) xml(ctx *xmlContext) string { |
| 53 | b := bytes.Buffer{} |
| 54 | c.updateContext(ctx) |
| 55 | b.WriteString(strings.Repeat(ctx.tab, ctx.indent)) |
| 56 | b.WriteString("</") |
| 57 | b.WriteString(c.name.get()) |
| 58 | b.WriteRune('>') |
| 59 | return b.String() |
| 60 | } |
| 61 | |
| 62 | func (c *xmlEndElement) updateContext(ctx *xmlContext) { |
| 63 | ctx.stack.pop() |
nothing calls this directly
no test coverage detected