GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: preserve hyperlinks with hyphens by parthea · Pull Request #1140 · googleapis/gapic-generator-python

This repository was archived by the owner on Aug 25, 2026. It is now read-only.

Conversation

@parthea

@parthea parthea commented Jan 20, 2022

Copy link
Copy Markdown
Contributor

The default behaviour of textwrap.wrap is to break text on hyphens. This PR sets the break_on_hyphens parameter of textwrap.wrap to False in order to preserve hyperlinks with hyphens.

Fixes #1131

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tswast reacted with hooray emoji
All reactions
  • 🎉 1 reaction
@parthea
parthea requested review from a team January 20, 2022 02:08
@parthea parthea mentioned this pull request Jan 20, 2022
feat: add owner email to TransferConfig message feat: allow customer to enroll a datasource programmatically docs: improvements to various message and field descriptions googleapis/python-bigquery-datatransfer#274
Closed
1 task
@parthea
fix: preserve links with hyphens
fff337f
@parthea
parthea force-pushed the preserve-links-with-hyphens branch from 4dfb8aa to fff337f Compare January 20, 2022 02:11
busunkim96
busunkim96 reviewed Jan 20, 2022
View reviewed changes

@busunkim96 busunkim96 left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find! Could you add a unit test that checks a string with a hyperlink?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

parthea and software-dov reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
software-dov
software-dov reviewed Jan 20, 2022
View reviewed changes

@software-dov software-dov left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@parthea
parthea requested review from busunkim96 and software-dov January 22, 2022 12:13
@parthea
parthea force-pushed the preserve-links-with-hyphens branch from c4b6966 to e7f4477 Compare January 22, 2022 14:26
@parthea
add test
2947aa6
@parthea
parthea force-pushed the preserve-links-with-hyphens branch from e7f4477 to 2947aa6 Compare January 22, 2022 14:27
parthea added 2 commits January 22, 2022 09:27
@parthea
Merge branch 'master' into preserve-links-with-hyphens
58f4d3a
@parthea
lint
ef47e4c
@parthea parthea assigned busunkim96 Jan 24, 2022
@parthea

parthea commented Jan 24, 2022

Copy link
Copy Markdown
Contributor Author

@busunkim96 @software-dov Please could you review/approve?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

software-dov
software-dov approved these changes Jan 25, 2022
View reviewed changes
@software-dov
software-dov merged commit b091bfc into master Jan 25, 2022
@software-dov
software-dov deleted the preserve-links-with-hyphens branch January 25, 2022 22:11
This was referenced Jan 25, 2022
chore(master): release 0.39.1 #1146
Closed
chore(main): release 0.39.1 #1160
Closed
chore(main): release 0.39.1 #1162
Closed
chore(main): release 0.61.0 #1163
Merged
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@busunkim96 busunkim96 Awaiting requested review from busunkim96
1 more reviewer
@software-dov software-dov software-dov approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@busunkim96 busunkim96

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Protobuf docstrings wrap links midway if they contain dashes

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@parthea @software-dov @busunkim96
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.