From c109dff9e28ca1d53092373150be9a653ff4870a Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Thu, 11 Aug 2022 20:45:58 +0000
Subject: exam-zh (11aug22)

git-svn-id: svn://tug.org/texlive/trunk@64098 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/exam-zh/exam-zh-question.sty | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/exam-zh/exam-zh-question.sty')

diff --git a/Master/texmf-dist/tex/latex/exam-zh/exam-zh-question.sty b/Master/texmf-dist/tex/latex/exam-zh/exam-zh-question.sty
index 6651de73834..6e612c19aaa 100644
--- a/Master/texmf-dist/tex/latex/exam-zh/exam-zh-question.sty
+++ b/Master/texmf-dist/tex/latex/exam-zh/exam-zh-question.sty
@@ -9,7 +9,7 @@
 \RequirePackage{expl3}
 \RequirePackage{xparse}
 
-\ProvidesExplPackage {exam-zh-question} {2022-08-09} {v0.1.15}
+\ProvidesExplPackage {exam-zh-question} {2022-08-11} {v0.1.16}
   {exam-zh question module}
 
 
@@ -1155,11 +1155,13 @@
   % #1: CJKunderline / use:n
   % #2: \allowbreak
   {
+    \dim_set_eq:NN \l_tmpb_dim \linegoal
     % 比较 \l__examzh_fillin_F_width_dim 和 linegoal
     \dim_compare:nNnTF { \l__examzh_fillin_F_width_dim } > { \linegoal }
       {
         % 超过 linegoal 就排一段 linegoal，然后 \l__examzh_fillin_F_width_dim 减去 linegoal 长度
-        \dim_set:NV \l_tmpa_dim \linegoal
+        % \dim_set:NV \l_tmpa_dim \linegoal
+        \dim_set:NV \l_tmpa_dim \l_tmpb_dim
         % 是否处于 list 环境中
         \bool_if:NTF \l__if_list_bool
           {
@@ -1172,7 +1174,7 @@
           }
           {
             % 正文中
-            #1 { \hspace { \linegoal } }
+            #1 { \hspace { \l_tmpb_dim } }
           }
         \dim_sub:NV \l__examzh_fillin_F_width_dim \l_tmpa_dim
         \dim_while_do:nNnn { \l__examzh_fillin_F_width_dim } > { \linewidth }
-- 
cgit v1.2.3

