Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Workflow] display label with new lines + colours properly when rendering a PUML dump#49516

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@alexislefebvre
Copy link
Contributor

@alexislefebvrealexislefebvre commentedFeb 23, 2023
edited
Loading

QA
Branch?5.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#49311
LicenseMIT
Doc PRno

In#49272 I removed the new lines instead of formatting them properly.

The PUML format accept new lines in labels of transitions as long as the source file uses actual\n strings instead of line returns (likePHP_EOL).

I propose a novel approach that will handle new lines with or without colours.

Compare these outputs from plantuml.com, inputs are based on thefixtures from Symfony:

After#49272

New lines are ignored

image

(source)

Correct output from this PR

With this patch → the second line is Grey and no tag is visible

image

(source)


Why close and open<font> tags?

The output is broken if we use\n without taking into account the<font> tags → there is a second line but it is black and</font> is visible

image

(source)

@carsonbotcarsonbot added this to the5.4 milestoneFeb 23, 2023
@alexislefebvrealexislefebvreforce-pushed the5.4-fix-style-of-label-containing-new-lines-in-puml-dump branch froma3edf88 toc363a64CompareFebruary 23, 2023 19:21
@alexislefebvrealexislefebvreforce-pushed the5.4-fix-style-of-label-containing-new-lines-in-puml-dump branch fromc363a64 tod0da385CompareFebruary 23, 2023 21:01
@alexislefebvrealexislefebvre changed the titlefix style of label containing new lines in PUML dumpdisplay label containing new lines properly when rendering a PUML dumpFeb 23, 2023
@alexislefebvrealexislefebvre changed the titledisplay label containing new lines properly when rendering a PUML dumpdisplay label with new lines + colours properly when rendering a PUML dumpFeb 23, 2023
@carsonbotcarsonbot changed the titledisplay label with new lines + colours properly when rendering a PUML dump[Workflow] display label with new lines + colours properly when rendering a PUML dumpFeb 24, 2023
@nicolas-grekasnicolas-grekasforce-pushed the5.4-fix-style-of-label-containing-new-lines-in-puml-dump branch fromd0da385 to361dce2CompareFebruary 24, 2023 08:13
@nicolas-grekas
Copy link
Member

Thank you@alexislefebvre.

alexislefebvre reacted with rocket emoji

@nicolas-grekasnicolas-grekas merged commit5bc4d55 intosymfony:5.4Feb 24, 2023
@alexislefebvrealexislefebvre deleted the 5.4-fix-style-of-label-containing-new-lines-in-puml-dump branchFebruary 24, 2023 08:38
This was referencedFeb 28, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@lyrixxlyrixxlyrixx approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

4 participants

@alexislefebvre@nicolas-grekas@lyrixx@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp