Skip to content

Commit

Permalink
Text in <em> tags will be inserted in pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
tristelune1 committed Dec 30, 2014
1 parent e7618d2 commit f6b9b6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions HocrConverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,8 @@ def to_pdf(self, imageFileNames, outFileName, fontname="Courier", fontsize=12, w
textContent = line.text
if ( textContent == None ):
textContent = line.findtext("%sstrong"%(self.xmlns))
if ( textContent == None ):
textContent = line.findtext("%sem"%(self.xmlns))
if ( textContent == None ):
textContent = u""
textContent = textContent.rstrip()
Expand Down

0 comments on commit f6b9b6a

Please sign in to comment.