[latex3-commits] [git/LaTeX3-latex3-latex3] master: Simplify some set up (3af2aea)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Oct 15 07:38:31 CEST 2018


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

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

commit 3af2aeade9425a1d45d9e89c6cde3cd739cb89e5
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Mon Oct 15 06:38:31 2018 +0100

    Simplify some set up


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

3af2aeade9425a1d45d9e89c6cde3cd739cb89e5
 l3kernel/l3msg.dtx |   14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)

diff --git a/l3kernel/l3msg.dtx b/l3kernel/l3msg.dtx
index 00f4c75..5bf87e3 100644
--- a/l3kernel/l3msg.dtx
+++ b/l3kernel/l3msg.dtx
@@ -914,19 +914,9 @@
     #1~error
   }
 \cs_new:Npn \msg_warning_text:n #1
-  {
-    \exp_args:Nf \tl_if_blank:nF { \msg_module_type:n {#1} }
-      { \msg_module_type:n {#1} ~ }
-    \msg_module_name:n {#1} ~
-    Warning
-  }
+  { \@@_text:nn {#1} { Warning } }
 \cs_new:Npn \msg_info_text:n #1
-  {
-    \exp_args:Nf \tl_if_blank:nF { \msg_module_type:n {#1} }
-      { \msg_module_type:n {#1} ~ }
-    \msg_module_name:n {#1} ~
-    Info
-  }
+  { \@@_text:nn {#1} { Info } }
 \cs_new:Npn \@@_text:nn #1#2
   {
     \exp_arg:Nf \@@_text:n { \msg_module_type:n {#1} }





More information about the latex3-commits mailing list