2019-04-15 | Paul Boddie | raw files shortlog changelog graph | Set any available pagename in pages without headings. | |
moinformat/parsers/moin.py (file) |
1.1 --- a/moinformat/parsers/moin.py Mon Apr 15 00:15:40 2019 +0200 1.2 +++ b/moinformat/parsers/moin.py Mon Apr 15 15:13:17 2019 +0200 1.3 @@ -139,6 +139,8 @@ 1.4 1.5 if self.headings: 1.6 metadata.set("title", self.headings[0].text_content()) 1.7 + else: 1.8 + metadata.set("title", self.metadata.get("pagename")) 1.9 1.10 # Heading disambiguation. 1.11