From aa306982f095bd491d6461b97a5fa7e9ffb825b5 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Fri, 8 Jan 2016 02:00:07 +0100 Subject: Make dropcaps optional MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- scripts/bupa | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/bupa') diff --git a/scripts/bupa b/scripts/bupa index f2a810b..5fd1952 100755 --- a/scripts/bupa +++ b/scripts/bupa @@ -24,6 +24,10 @@ class Page(object): self.meta_desc = page_dict['description'] if 'keywords' in page_dict: self.meta_keywords = page_dict['keywords'] + if 'dropcap' in page_dict: + self.dropcap = (page_dict['dropcap'] == 'True') + else: + self.dropcap = True self.body = page_dict['body'][0] def reST_to_html(s, id_prefix='id'): -- cgit v1.2.3-70-g09d2