{% extends "base.html" %} {% block title %}{{ ex.title }} · docx-redline{% endblock %} {% block scripts %} {% endblock %} {% block content %}
{{ "%02d"|format(ex.number) }}

{{ ex.title }}

{% if ex.summary %}

{{ ex.summary }}

{% endif %}

examples/{{ ex.slug }}.py — ran in {{ "%.2f"|format(run.seconds) }}s {% if run.ok %}· exit 0 {% else %}· FAILED{% endif %}

Console output

{{ run.stdout }}
{% if run.stderr %}
{{ run.stderr }}
{% endif %}

Source

{{ ex.source }}

What it wrote

{% if not documents %}
This example prints its result rather than saving a document — read the console output beside it.
{% endif %} {% for doc in documents %}
{{ doc.name }} {{ doc.total }} tracked change{{ "" if doc.total == 1 else "s" }} Download .docx
{% if doc.counts %}
{% for kind, n in doc.counts.items() %} {{ kind }} × {{ n }} {% endfor %} {% for author, n in doc.authors.items() %} {{ author }} ({{ n }}) {% endfor %}
{% endif %}
{{ doc.html|safe }}
{% if doc.comments %}

Comments

{% for c in doc.comments %}
{{ c.id }} {{ c.author }}{% if c.initials %} ({{ c.initials }}){% endif %}
{{ c.text }}
{% endfor %}
{% endif %}
{% endfor %}
{% endblock %}