diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/l3experimental/l3str/l3tl-analysis.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/l3experimental/l3str/l3tl-analysis.sty | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/l3experimental/l3str/l3tl-analysis.sty b/Master/texmf-dist/tex/latex/l3experimental/l3str/l3tl-analysis.sty index 0dfd6401fae..eb4a612e028 100644 --- a/Master/texmf-dist/tex/latex/l3experimental/l3str/l3tl-analysis.sty +++ b/Master/texmf-dist/tex/latex/l3experimental/l3str/l3tl-analysis.sty @@ -361,23 +361,33 @@ \cs_new_protected:Npn \tl_show_analysis:N #1 { \exp_args:No \__tl_analysis:n {#1} - \__msg_show_variable:Nnx #1 - { tl-analysis } - { - \exp_after:wN \__tl_analysis_show_loop:wNw \g__tl_analysis_result_tl - \s__tl { ? \__prg_break: } \s__tl - \__prg_break_point: - } + \__tl_analysis_show:N #1 } \cs_new_protected:Npn \tl_show_analysis:n #1 { + \__tl_analysis:n {#1} \tl_set:Nn \l__tl_analysis_internal_tl {#1} - \tl_show_analysis:N \l__tl_analysis_internal_tl + \__tl_analysis_show:N \l__tl_analysis_internal_tl + } +\cs_new_protected:Npn \__tl_analysis_show:N #1 + { + \group_begin: + \use:x + { + \group_end: + \exp_not:n { \__msg_show_variable:Nnn #1 } + { tl-analysis } + { + \exp_after:wN \__tl_analysis_show_loop:wNw \g__tl_analysis_result_tl + \s__tl { ? \__prg_break: } \s__tl + \__prg_break_point: + } + } } \cs_new:Npn \__tl_analysis_show_loop:wNw #1 \s__tl #2 #3 \s__tl { \use_none:n #2 - \iow_newline: > \c_space_tl \c_space_tl + \exp_not:n { \\ > \ \ } \if_int_compare:w "#2 = \c_zero \exp_after:wN \__tl_analysis_show_cs:n \else: |