(b *configBlock, indent int)
| 15 | } |
| 16 | |
| 17 | func (w *specWriter) writeConfigBlock(b *configBlock, indent int) { |
| 18 | if len(b.entries) == 0 { |
| 19 | return |
| 20 | } |
| 21 | |
| 22 | for i, entry := range b.entries { |
| 23 | // Add a new line to separate from the previous entry |
| 24 | if i > 0 { |
| 25 | w.out.WriteString("\n") |
| 26 | } |
| 27 | |
| 28 | w.writeConfigEntry(entry, indent) |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | func (w *specWriter) writeConfigEntry(e *configEntry, indent int) { |
| 33 | if e.kind == "block" { |
no test coverage detected