Commits

camlspotter  committed f1a9099

blockquote

  • Participants
  • Parent commits 910ec02

Comments (0)

Files changed (1)

File extensions/hatenaWriter.py

     def to_string(self, indent):
         return '>|' + self.lang + '|\n' + Block.to_string(self, 0) + '\n||<'
 
+class BlockQuote(Block):
+    def __init__(self, parent):
+        Block.__init__(self, parent)
+        
+    def append_string(self, elem):
+        self.contents.extend(elem.split('\n'))
+
+    def to_string(self, indent):
+        return '>>\n' + Block.to_string(self, 0) + '\n<<'
+
 class Verbose(Block):
     def __init__(self, parent, name):
         Block.__init__(self, parent)
 #        pass
 
     def visit_block_quote(self, node):
-        self.new_block(Verbose, "block_quote")
+        self.new_block(BlockQuote)
     def depart_block_quote(self, node):
         self.end_block()