From: Marei Peischl Date: Wed, 27 Nov 2019 13:16:09 +0000 (+0100) Subject: add thispagestyle only if pagebreak X-Git-Tag: release-3.5.6.1~310 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b29a71cd39edbb81eded152021a47a94edd75133;p=kivitendo-erp.git add thispagestyle only if pagebreak --- diff --git a/kiviletter.sty b/kiviletter.sty index b02b9ba65..31fbeb9bb 100644 --- a/kiviletter.sty +++ b/kiviletter.sty @@ -53,6 +53,7 @@ \bool_new:N \l_kivi_tmp_bool \bool_new:N \g_kivi_TableFoot_bool \dim_new:N \g_kivi_orig@textheight_dim +\int_new:N \g_PricingTabular_firstpage_int \ExplSyntaxOff \newsavebox{\shippingAddressBox} @@ -235,6 +236,7 @@ align=bl, \Gm@changelayout \begingroup \def \@currenvir {PricingTabular*}\edef \@currenvline {\on@line } + \int_gset:Nn \g_PricingTabular_firstpage_int {\c@page} \addtolength{\vsize}{-\box_ht:N \g_kivi_LT@foot_box} \pagegoal\vsize \widowpenalty0 @@ -246,7 +248,7 @@ align=bl, } \cs_new:cpn {endPricingTabular*} { - \thispagestyle{kivitendo.letter.PricingTable} + \int_compare:nNnF \g_PricingTabular_firstpage_int = \c@page {\thispagestyle{kivitendo.letter.PricingTable}} \bool_gset_false:N \g_kivi_TableFoot_bool \@nameuse{Gm@restore@@kivi.letter@default} \Gm@changelayout