Skip to content
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

Escape both <> characters in SVG test labels #6056

Merged

Conversation

pavoljuhas
Copy link
Collaborator

Also parametrize test_gate_with_less_greater_str so it is easier to
add checks for more wire symbols later.

Also parametrize test_gate_with_less_greater_str so it is easier to
add checks for more wire symbols.
@pavoljuhas pavoljuhas requested review from a team, vtomole and cduck as code owners April 7, 2023 20:12
@CirqBot CirqBot added the size: S 10< lines changed <50 label Apr 7, 2023
@@ -23,10 +23,7 @@ def fixup_text(text: str):
if '[cirq.VirtualTag()]' in text:
# https://github.com/quantumlib/Cirq/issues/2905
return text.replace('[cirq.VirtualTag()]', '')
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we change the if statements above as well so that we don't return as soon as a single if matches?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure, of course! Done. I have left the first short-circuit if as it does not matter when the string is dropped.

@tanujkhattar tanujkhattar merged commit ae62250 into quantumlib:master Apr 7, 2023
36 checks passed
@pavoljuhas pavoljuhas deleted the fix-both-lt-and-gt-in-svg branch April 7, 2023 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: S 10< lines changed <50
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants