Skip to content

Commit 4960f78

Browse files
MarkDaoustmarkmcd
andauthored
Remove extra new line. (#400)
* Remove extra new line. * blacken --------- Co-authored-by: Mark McDonald <macd@google.com>
1 parent 63a140b commit 4960f78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/generativeai/types/generation_types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ def text(self):
449449
language = ""
450450
else:
451451
language = f" {language}"
452-
texts.extend([f"```{language}", part.executable_code.code, "```"])
452+
texts.extend([f"```{language}", part.executable_code.code.lstrip("\n"), "```"])
453453
continue
454454
if "code_execution_result" in part:
455455
outcome_result = part.code_execution_result.outcome.name.lower().replace(

0 commit comments

Comments
 (0)