demydd / pandoc

Automatically exported from code.google.com/p/pandoc
0 stars 0 forks source link

LaTeX writer: tables with empty cells are broken #107

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The writer produces a wrong LaTeX table formatting if a row starts with an
empty cell. Example:

The Markdown Table

  Head 1  Head 2  Head 3
  ------- ------- -------
          Data 2  Data 3

is exported to LaTeX as:

\begin{center}
\begin{tabular}{>{\PBS\raggedright\hspace{0pt}}p{0.10\columnwidth}>{\PBS\raggedr
ight\hspace{0pt}}p{0.10\columnwidth}>{\PBS\raggedright\hspace{0pt}}p{0.09\column
width}}
Head 1
 & Head 2
 & Head 3
\\
\hline
Data 2
 & Data 3
\\
\end{tabular}
\end{center}

but the last row should look like this 

\hline

 & Data 2
 & Data 3
\\

A small fix in the LaTeX writer (see attached patch) can fix this problem.

-- 
Rodja Trappe | Software Developement

ART+COM Technologies GmbH
Kleiststr. 23-26 | 10787 Berlin | Germany
p: +49.30.21001-428 | f: +49.30.21001-556 | m: +49.179.9225767
w: http://tech.artcom.de/

Trade Register 107973B | County Court Charlottenburg
CEO: Pavel Mayer
VAT-IdNr.: DE254751981

Original issue reported on code.google.com by rodja.tr...@googlemail.com on 10 Nov 2008 at 9:29

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed in r1492.  Thanks for the excellent bug report and patch!

Original comment by fiddloso...@gmail.com on 11 Nov 2008 at 3:03