8000 Multirow cell does not get centered · Issue #10772 · jgm/pandoc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Multirow cell does not get centered #10772
Closed
@etclub

Description

@etclub

Here is a demo html

<table>
<colgroup><col width="20%"><col width="30%"><col width="50%"></colgroup>
<thead><tr><th align="center"><p>a</p></th>
<th align="center"><p>b</p></th>
<th align="center"><p>c</p></th></tr></thead>
<tbody><tr><td align="center"><p>1</p></td>
<td colspan="1" rowspan="2" align="center"><p>left</p></td>
<td align="center"><p>x</p></td></tr>
<tr><td align="center"><p>2</p></td>
<td align="center"><p>xx</p></td></tr>
<tr><td align="center"><p>3</p></td>
<td align="center"><p>center</p></td>
<td align="center"><p>xxx</p></td></tr>
</tbody></table>

It is converted into

\begin{longtable}[]{@{}
  >{\centering\arraybackslash}p{(\linewidth - 4\tabcolsep) * \real{0.2000}}
  >{\centering\arraybackslash}p{(\linewidth - 4\tabcolsep) * \real{0.3000}}
  >{\centering\arraybackslash}p{(\linewidth - 4\tabcolsep) * \real{0.5000}}@{}}
\toprule\noalign{}
\begin{minipage}[b]{\linewidth}\centering
a
\end{minipage} & \begin{minipage}[b]{\linewidth}\centering
b
\end{minipage} & \begin{minipage}[b]{\linewidth}\centering
c
\end{minipage} \\
\midrule\noalign{}
\endhead
\bottomrule\noalign{}
\endlastfoot
1 & \multirow{2}{=}{left} & x \\
2 & & xx \\
3 & center & xxx \\
\end{longtable}

The multirow cell is left-aligned in the resulting pdf.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0