Commits

Derek Mannheim committed 843bf10

Fixed issue #16 - dropcap on preformatted paragraphs in latex.

Comments (0)

Files changed (2)

src/tome/res/template.latex.tmpl

   \posttitle\{%
     \par\end\{center\}
     \begin\{center\}\large#1\end\{center\}
-    \vskip\{0.5em\}%
+    \vskip0.5em
+    \}%
 \}
 
 \newcommand\{\dropcap\}[1]\{%

src/tome/writeLatex.py

                             buf.write("\\begin{samepage}\\begin{verbatim}\n")
 
                         for k in xrange(len(paragraph)):
-                            writeSegment(buf, paragraph[k], i==0 and j==0 and k==0, verbatim=parPreformatted)
+                            writeSegment(buf, paragraph[k], i==0 and j==0 and k==0 and (not parPreformatted), verbatim=parPreformatted)
 
                         if parPreformatted:
                             buf.write("\\end{verbatim}\\end{samepage}\n")