mirror of
https://github.com/terraform-docs/terraform-docs.git
synced 2026-03-27 04:48:33 +07:00
fix: Normalize last empty line of the generated output (#336)
Generated output will not have any empty line or carriage return at the end of the last line and one carriage return (\n) will be added when we print that to stdout. Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
This commit is contained in:
@@ -179,7 +179,7 @@ func printExample(buf *bytes.Buffer, name string) error {
|
||||
buf.WriteString(fmt.Sprintf(" %s\n", s))
|
||||
}
|
||||
}
|
||||
buf.WriteString("\n\n")
|
||||
buf.WriteString("\n")
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user