Skip to content

Commit

Permalink
Remove extra new line. (#400)
Browse files Browse the repository at this point in the history
* Remove extra new line.

* blacken

---------

Co-authored-by: Mark McDonald <macd@google.com>
  • Loading branch information
MarkDaoust and markmcd authored Jun 27, 2024
1 parent 63a140b commit 4960f78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/generativeai/types/generation_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def text(self):
language = ""
else:
language = f" {language}"
texts.extend([f"```{language}", part.executable_code.code, "```"])
texts.extend([f"```{language}", part.executable_code.code.lstrip("\n"), "```"])
continue
if "code_execution_result" in part:
outcome_result = part.code_execution_result.outcome.name.lower().replace(
Expand Down

0 comments on commit 4960f78

Please sign in to comment.