Fix common event fields template to use subtitle char

pull/977/head
Kegan Dougal 9 years ago
parent e8cdfcbba2
commit 0c0ac3e814

@ -1,5 +0,0 @@
Modules
=======
Modules blurb goes here.

@ -14,7 +14,6 @@ targets:
- 6-appendices.rst - 6-appendices.rst
groups: # reusable blobs of files when prefixed with 'group:' groups: # reusable blobs of files when prefixed with 'group:'
modules: modules:
- modules/intro.rst
- modules/voip_events.rst - modules/voip_events.rst
- modules/typing_notifications.rst - modules/typing_notifications.rst
- modules/receipts.rst - modules/receipts.rst

@ -160,7 +160,12 @@ class MatrixSections(Sections):
def _render_ce_type(self, type): def _render_ce_type(self, type):
template = self.env.get_template("common-event-fields.tmpl") template = self.env.get_template("common-event-fields.tmpl")
ce_types = self.units.get("common_event_fields") ce_types = self.units.get("common_event_fields")
return template.render(common_event=ce_types[type]) subtitle_title_char = self.units.get("spec_targets")[
"relative_title_styles"
]["subtitle"]
return template.render(
common_event=ce_types[type], title_kind=subtitle_title_char
)
def render_common_event_fields(self): def render_common_event_fields(self):
return self._render_ce_type("event") return self._render_ce_type("event")

@ -1,5 +1,5 @@
{{common_event.title}} Fields {{common_event.title}} Fields
{{(7 + common_event.title | length) * '-'}} {{(7 + common_event.title | length) * title_kind}}
{{common_event.desc | wrap(80)}} {{common_event.desc | wrap(80)}}

Loading…
Cancel
Save