summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/siunitx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-07-05 20:54:36 +0000
committerKarl Berry <karl@freefriends.org>2021-07-05 20:54:36 +0000
commit919d654bed4c7ab98fc426801eaa655da8f75797 (patch)
tree96f9a08c76de72e825361613f073b831ca8c7ac5 /Master/texmf-dist/tex/latex/siunitx
parent0b1e7a48f8935511132fbd01249c6964e780f2f3 (diff)
siunitx (5jul21)
git-svn-id: svn://tug.org/texlive/trunk@59844 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/siunitx')
-rw-r--r--Master/texmf-dist/tex/latex/siunitx/siunitx.sty20
1 files changed, 14 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
index 681d6bf8757..6faa306cf73 100644
--- a/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
+++ b/Master/texmf-dist/tex/latex/siunitx/siunitx.sty
@@ -42,7 +42,7 @@
}%
\endinput
}%
-\ProvidesExplPackage {siunitx} {2021-06-29} {3.0.17}
+\ProvidesExplPackage {siunitx} {2021-07-04} {3.0.18}
{A comprehensive (SI) units package}
\msg_new:nnnn { siunitx } { incompatible-package }
{ Package~'#1'~incompatible. }
@@ -6046,11 +6046,19 @@
\siunitx_print_number:n {#1}
\tl_if_blank:nF {#2}
{
- \tl_use:N \l__siunitx_quantity_product_tl
- \bool_if:NTF \l__siunitx_quantity_break_bool
- { \penalty \binoppenalty }
- { \nobreak }
- \siunitx_print_unit:n {#2}
+ \bool_lazy_or:nnTF
+ { \tl_if_blank_p:n {#1} }
+ { ! \tl_if_head_eq_charcode_p:nN {#2} { 1 } }
+ {
+ \tl_use:N \l__siunitx_quantity_product_tl
+ \bool_if:NTF \l__siunitx_quantity_break_bool
+ { \penalty \binoppenalty }
+ { \nobreak }
+ \siunitx_print_unit:n {#2}
+ }
+ {
+ \exp_args:No \siunitx_print_unit:n { \use_none:n #2 }
+ }
}
}
\cs_generate_variant:Nn \siunitx_quantity_print:nn { nV , VV , xV }