From f681da2c4d3f3fa92a9f87f2bbf6af5424b21adc Mon Sep 17 00:00:00 2001
From: Aaron O'Leary <aaron.oleary@gmail.com>
Date: Sun, 21 Dec 2014 19:42:52 +0000
Subject: [PATCH] blockquote filter: fix control flow. fixes #59

---
 tools/filters/blockquote2div.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tools/filters/blockquote2div.py b/tools/filters/blockquote2div.py
index 6797c86..9fc6166 100755
--- a/tools/filters/blockquote2div.py
+++ b/tools/filters/blockquote2div.py
@@ -107,9 +107,8 @@ def blockquote2div(key, value, format, meta):
         ltitle = pf.stringify(inlines).lower()
         if ltitle in SPECIAL_TITLES:
             classes.append(SPECIAL_TITLES[ltitle])
-            return pf.Div(attr, blockquote)
 
-        elif len(classes) == 1 and classes[0] in SPECIAL_CLASSES:
+        if len(classes) == 1 and classes[0] in SPECIAL_CLASSES:
             remove_attributes(blockquote)
             # a blockquote is just a list of blocks, so it can be
             # passed directly to Div, which expects Div(attr, blocks)
-- 
GitLab