We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2474d47 commit 37e8df9Copy full SHA for 37e8df9
cirq-core/cirq/contrib/svg/svg.py
@@ -21,6 +21,7 @@ def fixup_text(text: str):
21
# https://github.com/quantumlib/Cirq/issues/2905
22
text = text.replace('[<virtual>]', '')
23
text = text.replace('[cirq.VirtualTag()]', '')
24
+ text = text.replace('&', '&')
25
text = text.replace('<', '<').replace('>', '>')
26
return text
27
cirq-core/cirq/contrib/svg/svg_test.py
@@ -65,6 +65,7 @@ def test_empty_moments():
65
'symbol,svg_symbol',
66
[
67
('<a', '<a'),
68
+ ('<a&', '<a&'),
69
('<=b', '<=b'),
70
('>c', '>c'),
71
('>=d', '>=d'),
0 commit comments