Fix some indentation behavio + add indent flag
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
package writers
|
||||
|
||||
// CountSpaces returns the number of spaces from the begining of the line
|
||||
// IndentSize set the indentation size for yaml output.
|
||||
var IndentSize = 2
|
||||
|
||||
// CountSpaces returns the number of spaces from the begining of the line.
|
||||
func CountSpaces(line string) int {
|
||||
var spaces int
|
||||
for _, char := range line {
|
||||
|
Reference in New Issue
Block a user