diff --git a/great_tables/gt.py b/great_tables/gt.py index 4030187e6..c42da7aff 100644 --- a/great_tables/gt.py +++ b/great_tables/gt.py @@ -440,7 +440,7 @@ def _render_as_html( {html_table} - """ +""" if make_page: # Create an HTML page and place the table within it @@ -453,7 +453,7 @@ def _render_as_html( {finalized_table} - """ +""" return finalized_table diff --git a/pyproject.toml b/pyproject.toml index 4e456580a..b47dc1827 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", ] diff --git a/tests/__snapshots__/test_export.ambr b/tests/__snapshots__/test_export.ambr index b658eeeb2..6da5980c4 100644 --- a/tests/__snapshots__/test_export.ambr +++ b/tests/__snapshots__/test_export.ambr @@ -135,7 +135,7 @@ - + ''' # --- # name: test_html_string_generated_inline_css @@ -165,6 +165,7 @@ + ''' # --- # name: test_html_string_generated_inline_css_make_page @@ -198,46 +199,13 @@ - - - ''' -# --- -# 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 + ''' # --- -# name: test_snap_render_as_latex +# name: test_snap_as_latex ''' \begingroup \setlength\LTleft{\dimexpr(0.5\linewidth - 225pt)} diff --git a/tests/__snapshots__/test_repr.ambr b/tests/__snapshots__/test_repr.ambr index 649d5c4a0..11c0a36e9 100644 --- a/tests/__snapshots__/test_repr.ambr +++ b/tests/__snapshots__/test_repr.ambr @@ -75,7 +75,7 @@ - + ''' # --- # name: test_repr_html_default @@ -154,7 +154,7 @@ - + ''' # --- # name: test_repr_html_positron @@ -239,10 +239,10 @@ - + - + ''' # --- # name: test_repr_html_quarto @@ -321,7 +321,7 @@ - + ''' # --- # name: test_repr_html_vscode @@ -400,6 +400,6 @@ - + ''' # --- diff --git a/tests/__snapshots__/test_utils_render_html.ambr b/tests/__snapshots__/test_utils_render_html.ambr index b15c589bb..df1b67f6b 100644 --- a/tests/__snapshots__/test_utils_render_html.ambr +++ b/tests/__snapshots__/test_utils_render_html.ambr @@ -100,7 +100,7 @@ - + ''' # --- # name: test_multiple_spanners_pads_for_stubhead_label