Commits

Robert Mařík committed db0d0c3

fix is the content of em tag spans accros more paragraphs

Comments (0)

Files changed (1)

 
             self.stack.append(attrs)
         elif tag == 'em':
-            self.latex[-1] += '\\textit{'
+            self.latex[-1] += '{\\itshape '
         elif tag == 'strong':
-            self.latex[-1] += '\\textbf{'
+            self.latex[-1] += '{\\bfseries '
         elif tag == 'h1':
             if dict(attrs).get('class') == 'star':
                 self.latex[-1] += '\\section*{'