[latex3-commits] [git/LaTeX3-latex3-latex3] master: Correct error message for \iow_allow_break: (e7ee4ee)

Bruno Le Floch bruno at le-floch.fr
Sun Dec 30 01:06:17 CET 2018


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/e7ee4ee3ebd8925fa2fe594374e81709547951af

>---------------------------------------------------------------

commit e7ee4ee3ebd8925fa2fe594374e81709547951af
Author: Bruno Le Floch <bruno at le-floch.fr>
Date:   Sun Dec 30 01:05:57 2018 +0100

    Correct error message for \iow_allow_break:


>---------------------------------------------------------------

e7ee4ee3ebd8925fa2fe594374e81709547951af
 l3kernel/l3file.dtx |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/l3kernel/l3file.dtx b/l3kernel/l3file.dtx
index ba39b05..4d96614 100644
--- a/l3kernel/l3file.dtx
+++ b/l3kernel/l3file.dtx
@@ -1443,14 +1443,14 @@
 %    \begin{macrocode}
 \cs_new_protected:Npn \iow_allow_break:
   {
-    \__kernel_msg_error:nnnn { kernel } { iow-allow-break }
+    \__kernel_msg_error:nnnn { kernel } { iow-indent }
       { \iow_wrap:nnnN } { \iow_allow_break: }
   }
 \cs_new:Npx \@@_allow_break: { \c_@@_wrap_allow_break_marker_tl }
 \cs_new:Npn \@@_allow_break_error:
   {
-    \__kernel_msg_expandable_error:nnnn { kernel } { iow-allow-break }
-      { \iow_wrap:nnnN } { \iow_allow_break:n }
+    \__kernel_msg_expandable_error:nnnn { kernel } { iow-indent }
+      { \iow_wrap:nnnN } { \iow_allow_break: }
   }
 %    \end{macrocode}
 % \end{macro}
@@ -2421,8 +2421,8 @@
   { Only~#1 (arg~1)~allows~#2 }
   {
     The~command~#2 can~only~be~used~in~messages~
-    which~will~be~wrapped~using~#1.~
-    It~was~called~with~argument~'#3'.
+    which~will~be~wrapped~using~#1.
+    \tl_if_empty:nF {#3} { ~ It~was~called~with~argument~'#3'. }
   }
 %    \end{macrocode}
 %





More information about the latex3-commits mailing list