Commit 5e2ddf57 authored by Andrey Golovizin's avatar Andrey Golovizin

Fix formatting proceedings without an editor in insrt.py

Fixes #111.
parent 4c6cba72
......@@ -344,30 +344,30 @@ class Style(BaseStyle):
return template
def get_proceedings_template(self, e):
template = toplevel [
first_of [
# there are editors
optional [
join(' ')[
self.format_editor(e),
sentence [
self.format_btitle(e, 'title', as_sentence=False),
self.format_volume_and_series(e, as_sentence=False),
self.format_address_organization_publisher_date(e),
],
],
if 'editor' in e.persons:
main_part = [
self.format_editor(e),
sentence [
self.format_btitle(e, 'title', as_sentence=False),
self.format_volume_and_series(e, as_sentence=False),
self.format_address_organization_publisher_date(e),
],
# there is no editor
optional_field('organization'),
]
else:
main_part = [
optional [ sentence [ field('organization') ] ],
sentence [
self.format_btitle(e, 'title', as_sentence=False),
self.format_volume_and_series(e, as_sentence=False),
self.format_address_organization_publisher_date(
e, include_organization=False),
],
],
sentence [ optional_field('note') ],
self.format_web_refs(e),
]
template = toplevel [
main_part + [
sentence [ optional_field('note') ],
self.format_web_refs(e),
]
]
return template
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment