Indent and simplify HTML snippets

This commit is contained in:
Andrea Cardaci 2018-05-29 21:52:10 +02:00
parent feae2cd8d7
commit e2433843b5
5 changed files with 37 additions and 41 deletions

View File

@ -25,9 +25,6 @@ layout: common
{% for example in examples %} {% for example in examples %}
<div class="example">
{{ example.description | markdownify }}
{% capture code %} {% capture code %}
{%- if function_name == 'suid-enabled' or function_name == 'suid-limited' %} {%- if function_name == 'suid-enabled' or function_name == 'suid-limited' %}
cp $(which {{ bin_name }}) . cp $(which {{ bin_name }}) .
@ -37,10 +34,9 @@ sudo chmod +s ./{{ bin_name }}
{{ example.code }} {{ example.code }}
{% endcapture %} {% endcapture %}
<pre><code> <div class="example">
{{- code | strip -}} {{ example.description | markdownify }}
</code></pre> <pre><code>{{- code | strip -}}</code></pre>
</div> </div>
{% endfor %} {% endfor %}