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

Skip to content

Commit c747042

Browse files
committed
Extra whitespace inside template expressions
1 parent a9d3e6b commit c747042

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

_tools/release_cycle_template.svg.jinja

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<svg
33
xmlns="http://www.w3.org/2000/svg"
44
class="release-cycle-chart"
5-
viewBox="0 0 {{diagram_width * SCALE}} {{diagram_height * SCALE}}"
5+
viewBox="0 0 {{ diagram_width * SCALE }} {{ diagram_height * SCALE }}"
66
>
77

88
{% for version in versions %}
@@ -13,30 +13,30 @@
1313
<rect
1414
class="release-cycle-row-shade"
1515
x="0em"
16-
y="{{(y - 1.125) * SCALE}}"
17-
width="{{diagram_width * SCALE}}"
18-
height="{{LINE_HEIGHT * SCALE}}"
16+
y="{{ (y - 1.125) * SCALE }}"
17+
width="{{ diagram_width * SCALE }}"
18+
height="{{ LINE_HEIGHT * SCALE }}"
1919
/>
2020
{% endif %}
2121
{% endfor %}
2222

2323
{% for year in years %}
2424
<text
2525
class="release-cycle-year-text"
26-
x="{{(year_to_x(year) + year_to_x(year+1)) / 2 * SCALE}}"
27-
y="{{(diagram_height - LINE_HEIGHT) * SCALE}}"
28-
font-size="{{SCALE * 0.75}}"
26+
x="{{ (year_to_x(year) + year_to_x(year + 1)) / 2 * SCALE }}"
27+
y="{{ (diagram_height - LINE_HEIGHT) * SCALE }}"
28+
font-size="{{ SCALE * 0.75 }}"
2929
text-anchor="middle"
3030
>
3131
{{ format_year(year) }}
3232
</text>
3333
<line
3434
class="release-cycle-year-line"
35-
x1="{{year_to_x(year+1) * SCALE}}"
36-
x2="{{year_to_x(year+1) * SCALE}}"
35+
x1="{{ year_to_x(year + 1) * SCALE }}"
36+
x2="{{ year_to_x(year + 1) * SCALE }}"
3737
y1="0"
38-
y2="{{(diagram_height - LINE_HEIGHT) * SCALE}}"
39-
font-size="{{SCALE}}"
38+
y2="{{ (diagram_height - LINE_HEIGHT) * SCALE }}"
39+
font-size="{{ SCALE }}"
4040
/>
4141
{% endfor %}
4242

@@ -46,44 +46,44 @@
4646
<!-- Legend on the left -->
4747
<text
4848
class="release-cycle-version-label"
49-
x="{{0.5 * SCALE}}"
50-
y="{{y * SCALE}}"
51-
font-size="{{SCALE}}"
49+
x="{{ 0.5 * SCALE }}"
50+
y="{{ y * SCALE }}"
51+
font-size="{{ SCALE }}"
5252
>
53-
Python {{version.key}}
53+
Python {{ version.key }}
5454
</text>
5555

5656
<!-- Colourful blob with a label -->
5757
{% set start_x = date_to_x(version.first_release_date) %}
5858
{% set end_x = date_to_x(version.end_of_life_date) %}
5959
{% set mid_x = (start_x + end_x) / 2 %}
6060
<rect
61-
class="release-cycle-blob release-cycle-blob-{{version.status}}"
62-
x="{{start_x * SCALE}}"
63-
y="{{(y - 1) * SCALE}}"
64-
width="{{(end_x - start_x) * SCALE}}"
65-
height="{{1.25 * SCALE}}"
61+
class="release-cycle-blob release-cycle-blob-{{ version.status }}"
62+
x="{{ start_x * SCALE }}"
63+
y="{{ (y - 1) * SCALE }}"
64+
width="{{ (end_x - start_x) * SCALE }}"
65+
height="{{ 1.25 * SCALE }}"
6666
rx="0.25em"
6767
ry="0.25em"
6868
/>
6969
<text
70-
class="release-cycle-blob-label release-cycle-blob-{{version.status}}"
71-
x="{{mid_x * SCALE}}"
72-
y="{{(y - 0.1) * SCALE}}"
73-
font-size="{{SCALE * 0.75}}"
70+
class="release-cycle-blob-label release-cycle-blob-{{ version.status }}"
71+
x="{{ mid_x * SCALE }}"
72+
y="{{ (y - 0.1) * SCALE }}"
73+
font-size="{{ SCALE * 0.75 }}"
7474
text-anchor="middle"
7575
>
76-
{{version.status}}
76+
{{ version.status }}
7777
</text>
7878
{% endfor %}
7979

8080
<!-- A line for today -->
8181
<line
8282
class="release-cycle-today-line"
83-
x1="{{date_to_x(today) * SCALE}}"
84-
x2="{{date_to_x(today) * SCALE}}"
83+
x1="{{ date_to_x(today) * SCALE }}"
84+
x2="{{ date_to_x(today) * SCALE }}"
8585
y1="0"
86-
y2="{{(diagram_height - LINE_HEIGHT) * SCALE}}"
87-
font-size="{{SCALE}}"
86+
y2="{{ (diagram_height - LINE_HEIGHT) * SCALE }}"
87+
font-size="{{ SCALE }}"
8888
/>
8989
</svg>

0 commit comments

Comments
 (0)