Skip to content

Commit bc61a48

Browse files
authored
Fix: Remove extra quote in Slides sample docstring (#333)
* Slides sample: remove extra quote There's an extra quote in the docstring, causing the code snippet to not be rendered with correct syntax highlighting. If you go to this page, the snippet look like it's all commented out. https://developers.google.com/slides/api/guides/create-slide#python * Remove extra '\n"' from docstrings. * Fix mismatched region tags
1 parent 451734b commit bc61a48

11 files changed

Lines changed: 15 additions & 11 deletions

slides/snippets/slides_copy_presentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def copy_presentation(presentation_id, copy_title):
2727
Creates the copy Presentation the user has access to.
2828
Load pre-authorized user credentials from the environment.
2929
TODO(developer) - See https://developers.google.com/identity
30-
for guides on implementing OAuth2 for the application.\n"
30+
for guides on implementing OAuth2 for the application.
3131
"""
3232

3333
creds, _ = google.auth.default()

slides/snippets/slides_create_bulleted_text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def create_bulleted_text(presentation_id, shape_id):
2727
Run create_bulleted_text the user has access to.
2828
Load pre-authorized user credentials from the environment.
2929
TODO(developer) - See https://developers.google.com/identity
30-
for guides on implementing OAuth2 for the application.\n"
30+
for guides on implementing OAuth2 for the application.
3131
"""
3232
creds, _ = google.auth.default()
3333
# pylint: disable=maybe-no-member

slides/snippets/slides_create_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def create_image(presentation_id, page_id):
2727
Creates images the user has access to.
2828
Load pre-authorized user credentials from the environment.
2929
TODO(developer) - See https://developers.google.com/identity
30-
for guides on implementing OAuth2 for the application.\n"
30+
for guides on implementing OAuth2 for the application.
3131
"""
3232

3333
creds, _ = google.auth.default()

slides/snippets/slides_create_presentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def create_presentation(title):
2727
Creates the Presentation the user has access to.
2828
Load pre-authorized user credentials from the environment.
2929
TODO(developer) - See https://developers.google.com/identity
30-
for guides on implementing OAuth2 for the application.\n"
30+
for guides on implementing OAuth2 for the application.
3131
"""
3232
creds, _ = google.auth.default()
3333
# pylint: disable=maybe-no-member

slides/snippets/slides_create_sheets_chart.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def create_sheets_chart(presentation_id, page_id, spreadsheet_id,
2828
create_sheets_chart the user has access to.
2929
Load pre-authorized user credentials from the environment.
3030
TODO(developer) - See https://developers.google.com/identity
31-
for guides on implementing OAuth2 for the application.\n"
31+
for guides on implementing OAuth2 for the application.
3232
"""
3333
creds, _ = google.auth.default()
3434
# pylint: disable=maybe-no-member
@@ -90,3 +90,5 @@ def create_sheets_chart(presentation_id, page_id, spreadsheet_id,
9090
"FIRSTSLIDE",
9191
"17eqFZl_WK4WVixX8PjvjfLD77DraoFwMDXeiHB3dvuM",
9292
"1107320627")
93+
94+
# [END slides_create_sheets_chart]

slides/snippets/slides_create_slide.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def create_slide(presentation_id, page_id):
2727
Creates the Presentation the user has access to.
2828
Load pre-authorized user credentials from the environment.
2929
TODO(developer) - See https://developers.google.com/identity
30-
for guides on implementing OAuth2 for the application.\n"
30+
for guides on implementing OAuth2 for the application.\n
3131
"""
3232
creds, _ = google.auth.default()
3333
# pylint: disable=maybe-no-member

slides/snippets/slides_create_textbox_with_text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def create_textbox_with_text(presentation_id, page_id):
2727
Creates the textbox with text, the user has access to.
2828
Load pre-authorized user credentials from the environment.
2929
TODO(developer) - See https://developers.google.com/identity
30-
for guides on implementing OAuth2 for the application.\n"
30+
for guides on implementing OAuth2 for the application.
3131
"""
3232
creds, _ = google.auth.default()
3333
# pylint: disable=maybe-no-member

slides/snippets/slides_refresh_sheets_chart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def refresh_sheets_chart(presentation_id, presentation_chart_id):
2727
refresh_sheets_chart the user has access to.
2828
Load pre-authorized user credentials from the environment.
2929
TODO(developer) - See https://developers.google.com/identity
30-
for guides on implementing OAuth2 for the application.\n"
30+
for guides on implementing OAuth2 for the application.
3131
"""
3232
creds, _ = google.auth.default()
3333
# pylint: disable=maybe-no-member

slides/snippets/slides_simple_text_replace.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def simple_text_replace(presentation_id, shape_id, replacement_text):
2727
Run simple_text_replace the user has access to.
2828
Load pre-authorized user credentials from the environment.
2929
TODO(developer) - See https://developers.google.com/identity
30-
for guides on implementing OAuth2 for the application.\n"
30+
for guides on implementing OAuth2 for the application.
3131
"""
3232
creds, _ = google.auth.default()
3333
# pylint: disable=maybe-no-member
@@ -70,3 +70,5 @@ def simple_text_replace(presentation_id, shape_id, replacement_text):
7070
simple_text_replace('10QnVUx1X2qHsL17WUidGpPh_SQhXYx40CgIxaKk8jU4',
7171
'MyTextBox_6',
7272
'GWSpace_now')
73+
74+
# [END slides_simple_text_replace]

slides/snippets/slides_text_merging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def text_merging(template_presentation_id, data_spreadsheet_id):
2727
Run Text merging the user has access to.
2828
Load pre-authorized user credentials from the environment.
2929
TODO(developer) - See https://developers.google.com/identity
30-
for guides on implementing OAuth2 for the application.\n"
30+
for guides on implementing OAuth2 for the application.
3131
"""
3232
creds, _ = google.auth.default()
3333
# pylint: disable=maybe-no-member

0 commit comments

Comments
 (0)