Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions great_tables/gt.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def _render_as_html(
</style>
{html_table}
</div>
"""
"""

if make_page:
# Create an HTML page and place the table within it
Expand All @@ -453,7 +453,7 @@ def _render_as_html(
{finalized_table}
</body>
</html>
"""
"""
return finalized_table


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ all = [
]

extra = [
"css-inline>=0.14.1",
"css-inline>=0.20.2,<0.21",
"selenium>=4.18.1",
"Pillow>=10.2.0",
]
Expand Down
40 changes: 4 additions & 36 deletions tests/__snapshots__/test_export.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
</table>

</div>

'''
# ---
# name: test_html_string_generated_inline_css
Expand Down Expand Up @@ -165,6 +165,7 @@
</table>

</div>

'''
# ---
# name: test_html_string_generated_inline_css_make_page
Expand Down Expand Up @@ -198,46 +199,13 @@
</table>

</div>



</body></html>
'''
# ---
# name: test_snap_as_latex
'''
\begingroup
\setlength\LTleft{\dimexpr(0.5\linewidth - 225pt)}
\setlength\LTright{\dimexpr(0.5\linewidth - 225pt)}
\fontsize{9.0pt}{10.8pt}\selectfont

\setlength{\LTpost}{0mm}
\begin{longtable}{@{\extracolsep{\fill}}llrrr}
\caption*{
{\large The \_title\_} \\
{\small The subtitle}
} \\
\toprule
\multicolumn{2}{c}{Make \_and\_ Model} & \multicolumn{2}{c}{Performance} & \\
\cmidrule(lr){1-2} \cmidrule(lr){3-4}
mfr & model & hp & trq & msrp \\
\midrule\addlinespace[2.5pt]
Ford & GT & 647.0 & 550.0 & \$447,000.00 \\
Ferrari & 458 Speciale & 597.0 & 398.0 & \$291,744.00 \\
Ferrari & 458 Spider & 562.0 & 398.0 & \$263,553.00 \\
Ferrari & 458 Italia & 562.0 & 398.0 & \$233,509.00 \\
Ferrari & 488 GTB & 661.0 & 561.0 & \$245,400.00 \\
\bottomrule
\end{longtable}
\begin{minipage}{\linewidth}
Note 1\\
Note 2\\
\end{minipage}
\endgroup

</body></html>
'''
# ---
# name: test_snap_render_as_latex
# name: test_snap_as_latex
'''
\begingroup
\setlength\LTleft{\dimexpr(0.5\linewidth - 225pt)}
Expand Down
12 changes: 6 additions & 6 deletions tests/__snapshots__/test_repr.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
</table>

</div>

'''
# ---
# name: test_repr_html_default
Expand Down Expand Up @@ -154,7 +154,7 @@
</table>

</div>

'''
# ---
# name: test_repr_html_positron
Expand Down Expand Up @@ -239,10 +239,10 @@
</table>

</div>

</body>
</html>

'''
# ---
# name: test_repr_html_quarto
Expand Down Expand Up @@ -321,7 +321,7 @@
</table>

</div>

'''
# ---
# name: test_repr_html_vscode
Expand Down Expand Up @@ -400,6 +400,6 @@
</table>

</div>

'''
# ---
2 changes: 1 addition & 1 deletion tests/__snapshots__/test_utils_render_html.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
</table>

</div>

'''
# ---
# name: test_multiple_spanners_pads_for_stubhead_label
Expand Down
Loading