fix ifkomavar linebreaks
authorMarei Peischl (peiTeX) <marei@peitex.de>
Wed, 27 Nov 2019 12:54:28 +0000 (13:54 +0100)
committerJan Büren <jan@kivitendo.de>
Mon, 3 Feb 2020 11:21:38 +0000 (12:21 +0100)
kiviletter.sty

index 66cd991..b02b9ba 100644 (file)
@@ -264,7 +264,7 @@ align=bl,
        }
        \bool_gset_false:N \g_kivi_restore_geometry_bool
 }
-\ExplSyntaxOff
+%\ExplSyntaxOff
 
 \if@kivi@infobox
 \newkomavar{locationtitle}
@@ -274,19 +274,19 @@ align=bl,
                \LARGE
                \usekomavar{locationtitle}
        \end{flushright}
-
+       \par
        \medskip
        \begin{tabularx}{\linewidth}{@{}l<{:}>{\raggedright\arraybackslash}X@{}}
                \datum&\usekomavar{date}\\
                \kundennummer&\usekomavar{customer}\\
-               \ansprechpartner&\usekomavar{fromname}\\
-               \ifkomavarempty{fromphone}{}{\textTelefon&\usekomavar{fromphone}\\}
-               \ifkomavarempty{fromemail}{}{\textEmail&\usekomavar{fromemail}\\}
+               \ansprechpartner&\usekomavar{fromname}
+               \ifkomavarempty{fromphone}{}{\\\textTelefon&\usekomavar{fromphone}}
+               \ifkomavarempty{fromemail}{}{\\\textEmail&\usekomavar{fromemail}}
        \end{tabularx}
 }
 \removereffields
 
-\ExplSyntaxOn
+%\ExplSyntaxOn
 \AtBeginLetter{
        \ifkomavarempty{title}{}{
                \exp_args:Nno\setkomavar{locationtitle}{\scr@title@var}