Permalink
Browse files

small bug fixes to get the wiki parsing right

  • Loading branch information...
Jinesh K J
Jinesh K J committed Mar 10, 2011
1 parent 603f6ec commit a9484cab57ab3da8ebe479e97271d616d8442ffc
Showing with 5 additions and 5 deletions.
  1. +5 −5 samples/wiki2pdf/wiki2pdf.py
@@ -192,7 +192,7 @@ def end_li(self):
if self.buffer and self.buffer.strip() > "":
if self.ul:
li = Text(markup = "" + self.buffer,font="FreeSerif", font_size=10)
- elif self.references:
+ elif self.reference:
self.ref_counter+=1
li = Text(markup = str(self.ref_counter) + ". "+ self.buffer.replace("",""), font = "FreeSerif", font_size=10)
else:
@@ -220,12 +220,12 @@ def start_ol(self, attrs):
for tups in attrs:
if 'class' in tups:
if tups[1] == 'references':
- self.references = True
+ self.reference = True
def end_ol(self):
self.ol = False
- if self.references:
- self.references= False
+ if self.reference:
+ self.reference= False
def start_ul(self, attrs):
self.ul = True
@@ -251,7 +251,7 @@ def end_p(self) :
para = Paragraph(markup=self.buffer,text = self.buffer, font="FreeSerif", font_size=10,)
self.sup = False
else:
- print self.buffer
+ #print self.buffer
para = Paragraph(text=self.buffer, font="FreeSerif", font_size=10,)
para.set_justify(True)

0 comments on commit a9484ca

Please sign in to comment.