Skip to content

Commit

Permalink
Minor changes to gen.go
Browse files Browse the repository at this point in the history
  • Loading branch information
kenshaw committed Dec 22, 2024
1 parent 4b2a76f commit 9aebd86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _examples/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ func (cmd *command) parse(ctx context.Context) error {
}
logger(" aliases: %v", cmd.aliases)
case sectExample:
cmd.example = trimRight(s)
cmd.example = strings.TrimLeft(trimRight(s), "\n")
case sectFooter:
cmd.footer += trimRight(s)
cmd.footer += strings.TrimLeft(trimRight(s), "\n")
case sectFlags:
if err := cmd.parseFlags(section, s); err != nil {
return fmt.Errorf("parsing flags: %w", err)
Expand Down

0 comments on commit 9aebd86

Please sign in to comment.