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

Fix formatting proceedings without an editor in insrt.py

Fixes #111.
parent 4c6cba72
Loading
Loading
Loading
Loading
+17 −17
Original line number Diff line number Diff line
@@ -344,31 +344,31 @@ class Style(BaseStyle):
        return template

    def get_proceedings_template(self, e):
        template = toplevel [
            first_of [
                # there are editors
                optional [
                    join(' ')[
        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),
                ],
            ],
            ]
        template = toplevel [
            main_part + [
                sentence [ optional_field('note') ],
                self.format_web_refs(e),
            ]
        ]
        return template

    def get_techreport_template(self, e):