[latex3-commits] [git/LaTeX3-latex3-latex3] master: Prevent expansion of pole in error message (b72bfb7)

Joseph Wright joseph.wright at morningstar2.co.uk
Sun Nov 4 17:30:24 CET 2018


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

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

commit b72bfb797122f8be2da21523c7b76a4c45a5e121
Author: Benjamin Berg <bberg at redhat.com>
Date:   Sun Nov 4 17:22:45 2018 +0100

    Prevent expansion of pole in error message
    
    If an expandable token is passed as a pole, then the expanded version
    would be printed rather than the exact token list that was searched.


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

b72bfb797122f8be2da21523c7b76a4c45a5e121
 l3kernel/l3coffins.dtx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/l3kernel/l3coffins.dtx b/l3kernel/l3coffins.dtx
index 6d83e8a..7f12b88 100644
--- a/l3kernel/l3coffins.dtx
+++ b/l3kernel/l3coffins.dtx
@@ -745,7 +745,7 @@
       { l_@@_poles_ \@@_to_value:N #1 _prop } {#2} #3
       {
         \__kernel_msg_error:nnxx { kernel } { unknown-coffin-pole }
-          {#2} { \token_to_str:N #1 }
+          { \exp_not:n {#2} } { \token_to_str:N #1 }
         \tl_set:Nn #3 { { 0pt } { 0pt } { 0pt } { 0pt } }
       }
   }





More information about the latex3-commits mailing list