Skip to content

Commit 07fb1c3

Browse files
committed
template: minor indentation fixes
Signed-off-by: Stephan Enderlein <[email protected]>
1 parent 5d79f70 commit 07fb1c3

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

templates/default_html.template

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,29 +41,35 @@ See "get_license_file_key" in `attrib.py` for more information
4141
<hr/>
4242
{% for about_object in abouts %}
4343
<div class="oss-component" id="component_{{ loop.index0 }}">
44-
<h3 class="component-name">{{ about_object.name.value }} {% if about_object.version.value %}{{ about_object.version.value }}{% endif %} </h3>
44+
<h3 class="component-name">{{ about_object.name.value }} {% if about_object.version.value %}{{ about_object.version.value }}{% endif %} </h3>
4545
{% if about_object.license_expression.value %}
46-
<p>This component is licensed under {{ about_object.license_expression.value }}</p>
46+
<p>This component is licensed under {{ about_object.license_expression.value }}</p>
4747
{% endif %}
4848
{% if about_object.copyright.value %}
49-
<pre>{{about_object.copyright.value}}</pre>
49+
<pre>
50+
{{about_object.copyright.value}}
51+
</pre>
5052
{% endif %}
5153
{% if about_object.notice_file.value %}
5254
{% for notice in about_object.notice_file.value %}
53-
<pre class="component-notice">{{ about_object.notice_file.value[notice] }}</pre>
55+
<pre class="component-notice">
56+
{{ about_object.notice_file.value[notice] }}
57+
</pre>
5458
{% endfor %}
5559
{% endif %}
5660
{% if about_object.license_key.value %}
5761
{% for license_key in about_object.license_key.value %}
5862
{% if license_key in common_licenses %}
59-
<p>Full text of <a class="{{ license_key }}" href="#component-license-{{ license_key }}"> {{ license_key }}</a> is available at the end of this document.</p>
63+
<p>Full text of <a class="{{ license_key }}" href="#component-license-{{ license_key }}"> {{ license_key }}</a> is available at the end of this document.</p>
6064
{% endif %}
6165
{% endfor %}
6266
{% if about_object.license_file.value %}
6367
{% for lic_file_name in about_object.license_file.value %}
6468
{% if not license_file_key_and_license_key[license_file_name_and_license_file_key[lic_file_name]] in common_licenses %}
6569
{% if about_object.license_file.value[lic_file_name] %}
66-
<pre>{{ about_object.license_file.value[lic_file_name] | e}}</pre>
70+
<pre>
71+
{{ about_object.license_file.value[lic_file_name] | e}}
72+
</pre>
6773
{% endif %}
6874
{% endif %}
6975
{% endfor %}
@@ -72,7 +78,9 @@ See "get_license_file_key" in `attrib.py` for more information
7278
{% if about_object.license_file.value %}
7379
{% for lic_file_name in about_object.license_file.value %}
7480
{% if about_object.license_file.value[lic_file_name] %}
75-
<pre>{{ about_object.license_file.value[lic_file_name] | e}}</pre>
81+
<pre>
82+
{{ about_object.license_file.value[lic_file_name] | e}}
83+
</pre>
7684
{% endif %}
7785
{% endfor %}
7886
{% endif %}
@@ -84,7 +92,9 @@ See "get_license_file_key" in `attrib.py` for more information
8492
{% for key in license_file_key_and_context %}
8593
{% if key in common_licenses %}
8694
<h3 id="component-license-{{ key }}">{{ key }}</h3>
87-
<pre>{{ license_file_key_and_context[key]|e }}</pre>
95+
<pre>
96+
{{ license_file_key_and_context[key]|e }}
97+
</pre>
8898
{% endif %}
8999
{% endfor %}
90100
<h3><a id="End">End</a></h3>

tests/testdata/test_attrib/gen_default_template/expected_default_attrib.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h1>OPEN SOURCE SOFTWARE INFORMATION</h1>
2020
<hr/>
2121

2222
<div class="oss-component" id="component_0">
23-
<h3 class="component-name">Apache HTTP Server 2.4.3 </h3>
23+
<h3 class="component-name">Apache HTTP Server 2.4.3 </h3>
2424

2525

2626

@@ -33,6 +33,6 @@ <h3 class="component-name">Apache HTTP Server 2.4.3 </h3>
3333
<h3>Common Licenses Used in This Product</h3>
3434

3535
<h3><a id="End">End</a></h3>
36-
<i>This file was generated with AboutCode Toolkit version: 6.0.0 on: 2021-08-26 14:20:37.852657 (UTC)</i>
36+
<i>This file was generated with AboutCode Toolkit version: 6.0.0 on: 2021-08-26 14:42:50.530382 (UTC)</i>
3737
</body>
3838
</html>

0 commit comments

Comments
 (0)