Add common event field descriptions and template.
parent
54783a59c3
commit
6dcbc40b63
@ -0,0 +1,17 @@
|
|||||||
|
{{common_event.title}}
|
||||||
|
{{(common_event.title | length) * '-'}}
|
||||||
|
|
||||||
|
{{common_event.desc | wrap(80)}}
|
||||||
|
|
||||||
|
================== ================= ===========================================
|
||||||
|
Key Type Description
|
||||||
|
================== ================= ===========================================
|
||||||
|
{% for row in common_event.rows -%}
|
||||||
|
{# -#}
|
||||||
|
{# Row type needs to prepend spaces to line up with the type column (19 ch) -#}
|
||||||
|
{# Desc needs to prepend the required text (maybe) and prepend spaces too -#}
|
||||||
|
{# It also needs to then wrap inside the desc col (43 ch width) -#}
|
||||||
|
{# -#}
|
||||||
|
{{row.key}}{{row.type|indent(19-row.key|length)}}{{row.desc | indent(18 - (row.type|length)) |wrap(43) |indent_block(37)}}
|
||||||
|
{% endfor -%}
|
||||||
|
================== ================= ===========================================
|
||||||
Loading…
Reference in New Issue