Skip to content

Commit b822236

Browse files
committed
refactor: increase spacing in output for better readability
- In `improve.go` and `translate.go`, the output formatting is changed by increasing the spacing between joined strings from a single newline to a double newline. This enhances the readability of the output by providing clearer separation between sections.
1 parent 2cdb20b commit b822236

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

improve.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (imp *Improver) Improve(ctx context.Context, params ImproveParams) (string,
7777
result = append(result, translated)
7878
}
7979

80-
return addNewline(strings.Join(result, "\n")), nil
80+
return addNewline(strings.Join(result, "\n\n")), nil
8181
}
8282

8383
func (imp *Improver) improveChunk(ctx context.Context, chunk string, params ImproveParams) (string, error) {

translate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func (t *Translator) Translate(ctx context.Context, params TranslateParams) (str
7979
result = append(result, translated)
8080
}
8181

82-
return addNewline(strings.Join(result, "\n")), nil
82+
return addNewline(strings.Join(result, "\n\n")), nil
8383
}
8484

8585
func (t *Translator) translateChunk(ctx context.Context, chunk string, params TranslateParams) (string, error) {

0 commit comments

Comments
 (0)