Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,12 @@ func (k *KV) Pos() Position {
return k.position
}

// SetLeadingSpace allows to set the leading space count
// before printing the key/values params of a host
func (k *KV) SetLeadingSpace(leadingSpace int) {
k.leadingSpace = leadingSpace
}

// String prints k as it was parsed in the config file. There may be slight
// changes to the whitespace between values.
func (k *KV) String() string {
Expand Down