From a809a190ff669feb11cb64db915b763abd0bed81 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Wed, 23 Jun 2021 03:01:05 +0000
Subject: CTAN sync 202106230301

---
 macros/latex/contrib/siunitx/siunitx-complex.dtx | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

(limited to 'macros/latex/contrib/siunitx/siunitx-complex.dtx')

diff --git a/macros/latex/contrib/siunitx/siunitx-complex.dtx b/macros/latex/contrib/siunitx/siunitx-complex.dtx
index ca4262bdce..a1783bf8c0 100644
--- a/macros/latex/contrib/siunitx/siunitx-complex.dtx
+++ b/macros/latex/contrib/siunitx/siunitx-complex.dtx
@@ -648,9 +648,20 @@
     \exp_after:wN \@@_extract_exponent:w \l_@@_tmp_tl \q_stop
     \tl_set:Nx \l_@@_tmp_tl
       {
-        \bool_lazy_and:nnTF
-          { \l_siunitx_number_bracket_ambiguous_bool }
-          { ! \tl_if_empty_p:N \l_@@_exp_tl }
+        \bool_lazy_or:nnTF
+          {
+            \bool_lazy_and_p:nn
+              { \l_siunitx_number_bracket_ambiguous_bool }
+              { ! \tl_if_empty_p:N \l_@@_exp_tl }
+          }
+          {
+            ! \bool_lazy_any_p:n
+              {
+                { \tl_if_blank_p:n {#1} }
+                { \tl_if_empty_p:N \l_@@_real_tl }
+                { \tl_if_empty_p:N \l_@@_img_tl }
+              }
+          }
           { \@@_format_bracket:n }
           { \use:n }
           {
-- 
cgit v1.2.3

