<li class="m-doc-collapsible{% if loop.depth > M_CLASS_TREE_EXPAND_LEVELS or (i.kind != 'namespace' and not M_EXPAND_INNER_TYPES) %} collapsed{% endif %}">
<a href="#" onclick="return toggle(this)">{{ i.kind }}</a> <a href="{{ i.url }}" class="m-doc">{{ i.name }}</a>{% if i.is_deprecated %} <span class="m-label m-danger">deprecated</span>{% endif %} <span class="m-doc">{{ i.brief }}</span>
<ul class="m-doc">
-{{ loop(i.children)|indent(4, true) }}
+{{ loop(i.children)|rtrim|indent(4, true) }}
</ul>
</li>
{% else %}
<li>
<a href="#{{ id }}">{{ name }}</a>
<ul>
-{{ loop(children)|indent(4, true) }}
+{{ loop(children)|rtrim|indent(4, true) }}
</ul>
</li>
{% else %}
<li>
<a href="#{{ id }}">{{ name }}</a>
<ul>
-{{ loop(children)|indent(4, true) }}
+{{ loop(children)|rtrim|indent(4, true) }}
</ul>
</li>
{% else %}
<meta name="theme-color" content="{{ M_THEME_COLOR }}" />
{% endif %}
{% if M_HTML_HEADER %}
- {{ M_HTML_HEADER|indent(2) }}
+ {{ M_HTML_HEADER|rtrim|indent(2) }}
{% endif %}
</head>
<body>
</form>
<noscript class="m-text m-danger m-text-center">Unlike everything else in the docs, the search functionality <em>requires</em> JavaScript.{% if M_SEARCH_EXTERNAL_URL %} Enable it or <a href="{{ M_SEARCH_EXTERNAL_URL|replace('{query}', '') }}">use an external search engine</a>.{% endif %}</noscript>
<div id="search-help" class="m-text m-dim m-text-center">
- {{ M_SEARCH_HELP|indent(12) }}
+ {{ M_SEARCH_HELP|rtrim|indent(12) }}
</div>
<div id="search-notfound" class="m-text m-warning m-text-center">Sorry, nothing was found.{% if M_SEARCH_EXTERNAL_URL %}<br />Maybe try a full-text <a href="#" id="search-external" data-search-engine="{{ M_SEARCH_EXTERNAL_URL }}">search with external engine</a>?{% endif %}</div>
<ul id="search-results"></ul>
<li class="m-doc-collapsible{% if loop.depth > M_FILE_TREE_EXPAND_LEVELS %} collapsed{% endif %}">
<a href="#" onclick="return toggle(this)">{{ i.kind }}</a> <a href="{{ i.url }}" class="m-doc">{{ i.name }}</a>{% if i.is_deprecated %} <span class="m-label m-danger">deprecated</span>{% endif %} <span class="m-doc">{{ i.brief }}</span>
<ul class="m-doc">
-{{ loop(i.children)|indent(4, true) }}
+{{ loop(i.children)|rtrim|indent(4, true) }}
</ul>
</li>
{% else %}
<li class="m-doc-collapsible">
<a href="#" onclick="return toggle(this)">module</a> <a href="{{ i.url }}" class="m-doc">{{ i.name }}</a>{% if i.is_deprecated %} <span class="m-label m-danger">deprecated</span>{% endif %} <span class="m-doc">{{ i.brief }}</span>
<ul class="m-doc">
-{{ loop(i.children)|indent(4, true) }}
+{{ loop(i.children)|rtrim|indent(4, true) }}
</ul>
</li>
{% else %}
<li class="m-doc-collapsible">
<a href="#" onclick="return toggle(this)">{{ i.kind }}</a> <a href="{{ i.url }}" class="m-doc">{{ i.name }}</a>{% if i.is_deprecated %} <span class="m-label m-danger">deprecated</span>{% endif %} <span class="m-doc">{{ i.brief }}</span>
<ul class="m-doc">
-{{ loop(i.children|selectattr('kind', 'equalto', 'namespace'))|indent(4, true) }}
+{{ loop(i.children|selectattr('kind', 'equalto', 'namespace'))|rtrim|indent(4, true) }}
</ul>
</li>
{% else %}
<li>
<a href="#{{ id }}">{{ name }}</a>
<ul>
-{{ loop(children)|indent(4, true) }}
+{{ loop(children)|rtrim|indent(4, true) }}
</ul>
</li>
{% else %}
<li class="m-doc-collapsible">
<a href="#" onclick="return toggle(this)"></a><a href="{{ i.url }}" class="m-doc">{{ i.name }}</a>{% if i.is_deprecated %} <span class="m-label m-danger">deprecated</span>{% endif %} <span class="m-doc">{{ i.brief }}</span>
<ul class="m-doc">
-{{ loop(i.children)|indent(4, true) }}
+{{ loop(i.children)|rtrim|indent(4, true) }}
</ul>
</li>
{% else %}
<meta name="theme-color" content="{{ THEME_COLOR }}" />
{% endif %}
{% if HTML_HEADER %}
- {{ HTML_HEADER|indent(2) }}
+ {{ HTML_HEADER|rtrim|indent(2) }}
{% endif %}
</head>
<body>
</form>
<noscript class="m-text m-danger m-text-center">Unlike everything else in the docs, the search functionality <em>requires</em> JavaScript.{% if SEARCH_EXTERNAL_URL %} Enable it or <a href="{{ SEARCH_EXTERNAL_URL|replace('{query}', '') }}">use an external search engine</a>.{% endif %}</noscript>
<div id="search-help" class="m-text m-dim m-text-center">
- {{ SEARCH_HELP|render_rst|indent(12) }}
+ {{ SEARCH_HELP|render_rst|rtrim|indent(12) }}
</div>
<div id="search-notfound" class="m-text m-warning m-text-center">Sorry, nothing was found.{% if SEARCH_EXTERNAL_URL %}<br />Maybe try a full-text <a href="#" id="search-external" data-search-engine="{{ SEARCH_EXTERNAL_URL }}">search with external engine</a>?{% endif %}</div>
<ul id="search-results"></ul>
{% if FINE_PRINT == '[default]' %}
<p>{{ PROJECT_TITLE }}{% if PROJECT_SUBTITLE %} {{ PROJECT_SUBTITLE }}{% endif %}. Created with <a href="https://mcss.mosra.cz/documentation/python/">m.css Python doc generator</a>.</p>
{% else %}
- {{ FINE_PRINT|render_rst|indent(8) }}
+ {{ FINE_PRINT|render_rst|rtrim|indent(8) }}
{% endif %}
</div>
</div>
<li class="m-doc-collapsible{% if loop.depth > CLASS_INDEX_EXPAND_LEVELS or (i.kind != 'module' and not CLASS_INDEX_EXPAND_INNER) %} collapsed{% endif %}">
<a href="#" onclick="return toggle(this)">{{ i.kind }}</a> <a href="{{ i.url }}" class="m-doc">{{ i.name }}</a> <span class="m-doc">{{ i.summary }}</span>
<ul class="m-doc">
-{{ loop(i.children)|indent(4, true) }}
+{{ loop(i.children)|rtrim|indent(4, true) }}
</ul>
</li>
{% else %}
<li class="m-doc-collapsible">
<a href="#" onclick="return toggle(this)">{{ i.kind }}</a> <a href="{{ i.url }}" class="m-doc">{{ i.name }}</a> <span class="m-doc">{{ i.summary }}</span>
<ul class="m-doc">
-{{ loop(i.children|selectattr('kind', 'equalto', 'module'))|indent(4, true) }}
+{{ loop(i.children|selectattr('kind', 'equalto', 'module'))|rtrim|indent(4, true) }}
</ul>
</li>
{% else %}
<li class="m-doc-collapsible">
<a href="#" onclick="return toggle(this)"></a><a href="{{ i.url }}" class="m-doc">{{ i.name }}</a> <span class="m-doc">{{ i.summary }}</span>
<ul class="m-doc">
-{{ loop(i.children)|indent(4, true) }}
+{{ loop(i.children)|rtrim|indent(4, true) }}
</ul>
</li>
{% else %}
{% for article in article_list %}
<article>
{% macro header() %}{% include "article_header.html" %}{% endmacro %}
- {{ header()|indent(8) }}
+ {{ header()|rtrim|indent(8) }}
{% set show_content =
article.content and loop.first and (not articles_page or articles_page.number == 1) and
((article.collapse_first is defined and article.collapse_first != 'True') or
{% endif %}
<footer>
{% macro footer() %}{% include "article_footer.html" %}{% endmacro %}
- {{ footer()|indent(10) }}
+ {{ footer()|rtrim|indent(10) }}
</footer>
{% if not show_content %}
<div class="m-clearfix-l"></div>
{% endfor %}
{% if articles_page and articles_page.has_other_pages() %}
{% macro pagination() %}{% include 'pagination.html' %}{% endmacro %}
- {{ pagination()|indent(6) }}
+ {{ pagination()|rtrim|indent(6) }}
{% endif %}
</div>
{% endblock %}
{{ article.content|trim }}
<!-- /content -->
{% if article.category.badge or (article.author and article.author.badge) %}
- {{ badges()|indent(10) }}
+ {{ badges()|rtrim|indent(10) }}
{% endif %}
</div>
</div>
<div class="m-row">
<div class="m-col-m-10 m-push-m-1 m-nopadb">
{% macro footer() %}{% include "article_footer.html" %}{% endmacro %}
- {{ footer()|indent(10) }}
+ {{ footer()|rtrim|indent(10) }}
</div>
</div>
</footer>
{% else %}
<article class="m-col-m-10 m-nopadb">
{% macro header() %}{% include "article_header.html" %}{% endmacro %}
- {{ header()|indent(6) }}
+ {{ header()|rtrim|indent(6) }}
<div class="m-clearfix-l"></div>
{% if article.archived == 'True' and M_ARCHIVED_ARTICLE_BADGE %}
- {{ M_ARCHIVED_ARTICLE_BADGE|render_rst|replace('{year}', article.date.year)|indent(6) }}
+ {{ M_ARCHIVED_ARTICLE_BADGE|render_rst|replace('{year}', article.date.year)|rtrim|indent(6) }}
{% endif %}
{% if article.content %}
<!-- content -->
<!-- /content -->
{% endif %}
{% if article.category.badge or (article.author and article.author.badge) %}
- {{ badges()|indent(6) }}
+ {{ badges()|rtrim|indent(6) }}
{% endif %}
<footer>
{% macro footer() %}{% include "article_footer.html" %}{% endmacro %}
- {{ footer()|indent(8) }}
+ {{ footer()|rtrim|indent(8) }}
</footer>
</article>
{% endif %}
<img src="{{ article.author.image|expand_link(article)|e }}" alt="{{ article.author|e }}" />
{% endif %}
<h3>About the author</h3>
- {{ article.author.badge|expand_links(article)|indent(2) }}
+ {{ article.author.badge|expand_links(article)|rtrim|indent(2) }}
</div>
{% endif %}
{% if article.category.badge %}
<img src="{{ article.category.image|expand_link(article)|e }}" alt="{{ article.category|e }}" />
{% endif %}
<h3>{% if article.category.badge_title %}{{ article.category.badge_title }}{% else %}{{ article.category|e }}{% endif %}</h3>
- {{ article.category.badge|expand_links(article)|indent(2) }}
+ {{ article.category.badge|expand_links(article)|rtrim|indent(2) }}
</div>
{% endif %}
<img src="{{ author.page.image|expand_link(author.page)|e }}" alt="{{ author|e }}" />
{% endif %}
<h3>{% if author.page.title %}{{ author.page.title }}{% else %}{{ author|e }}{% endif %}</h3>
- {{ author.page.content|indent(8) }}
+ {{ author.page.content|rtrim|indent(8) }}
</div>
{% endif %}
{% endblock %}
{% if not M_FINE_PRINT is defined or M_FINE_PRINT %}
<div class="m-row">
<div class="m-col-l-10 m-push-l-1">
- {{ (M_FINE_PRINT or SITENAME + ". Powered by `Pelican <https://getpelican.com>`_ and `m.css <https://mcss.mosra.cz>`_.")|render_rst|indent(8) }}
+ {{ (M_FINE_PRINT or SITENAME + ". Powered by `Pelican <https://getpelican.com>`_ and `m.css <https://mcss.mosra.cz>`_.")|render_rst|rtrim|indent(8) }}
</div>
</div>
{% endif %}
{% for article in articles_page.object_list %}
<article>
{% macro header() %}{% include "article_header.html" %}{% endmacro %}
- {{ header()|indent(8) }}
+ {{ header()|rtrim|indent(8) }}
<footer>
{% macro footer() %}{% include "article_footer.html" %}{% endmacro %}
- {{ footer()|indent(10) }}
+ {{ footer()|rtrim|indent(10) }}
</footer>
<div class="m-clearfix-l"></div>
</article>
{% endfor %}
{% if articles_page.has_other_pages() %}
{% macro pagination() %}{% include 'pagination.html' %}{% endmacro %}
- {{ pagination()|indent(6) }}
+ {{ pagination()|rtrim|indent(6) }}
{% endif %}
</div>
{% endblock %}
<img src="{{ category.page.image|expand_link(category.page)|e }}" alt="{{ category|e }}" />
{% endif %}
<h3>{% if category.page.title %}{{ category.page.title }}{% else %}{{ category|e }}{% endif %}</h3>
- {{ category.page.content|indent(8) }}
+ {{ category.page.content|rtrim|indent(8) }}
</div>
{% endif %}
{% endblock %}
{% endfor %}
{% endif %}
{% if page.html_header %}
- {{ page.html_header|indent(2) }}
+ {{ page.html_header|rtrim|indent(2) }}
{% endif %}
{% endblock %}
{% endfor %}
{% endif %}
{% if page.html_header %}
- {{ page.html_header.strip()|indent(2) }}
+ {{ page.html_header|trim|indent(2) }}
{% endif %}
</head>
<body>
{% if tag.page and tag.page.content and articles_page.number == 1 %}
<div class="m-block m-info">
<h3>{% if tag.page.title %}{{ tag.page.title }}{% else %}{{ tag|e }}{% endif %}</h3>
- {{ tag.page.content|indent(8) }}
+ {{ tag.page.content|rtrim|indent(8) }}
</div>
{% endif %}
{% endblock %}