Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Console] Don't cut Urls wrapped in SymfonyStyle block #47062

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 26, 2022

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Jul 26, 2022

Q A
Branch? 6.2
Bug fix? no
New feature? yes
Deprecations? no
Tickets #30920
License MIT
Doc PR symfony/symfony-docs#16476

Continuation of #45318 by @fchris82

Copy link
Member

@fabpot fabpot left a comment

Choose a reason for hiding this comment

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

LGTM, except for a small suggestion.

@fabpot
Copy link
Member

fabpot commented Jul 26, 2022

Looks like tests are broken by this PR.

fchris82 and others added 2 commits July 26, 2022 10:35
Current SymfonyStyle can cause some problems:
- can cut format tags,
- cut/split URLs, the user can't click on them in the terminal

I fixed the problem and added or modified some tests. This is a simple,
fast, and working solution with a regular expression that won't wrap in
the middle of a formatting tag or a link. The last one is optional,
see the doc change.

Co-authored-by: Théo FIDRY <[email protected]>
@fabpot
Copy link
Member

fabpot commented Jul 26, 2022

Thank you @GromNaN.

@fabpot fabpot merged commit b1b77f3 into symfony:6.2 Jul 26, 2022
@GromNaN
Copy link
Member Author

GromNaN commented Jul 26, 2022

Thank you @fchris82

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants