Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\iow_indent:n doesn't work with \iow_term:n when using \iow_wrap:nnnN #215

Closed
vermiculus opened this issue May 23, 2015 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@vermiculus
Copy link

\input expl3-generic \relax \ExplSyntaxOn

\iow_wrap:nnnN { \iow_indent:n { test } } { } { } \iow_term:n
% Expected: |    test
% Result:   | test
\iow_wrap:nnnN { \prg_replicate:nn {30} { test~ } } { \iow_indent:n { } } { } \iow_term:n
% Expected: | 30 * 'test' with four-space hang
% Result    | garbage

\bye
$ pdftex mwe.tex 
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=pdftex)
 restricted \write18 enabled.
entering extended mode
(./mwe.tex
(/usr/local/texlive/2014/texmf-dist/tex/latex/l3kernel/expl3-generic.tex
(/usr/local/texlive/2014/texmf-dist/tex/latex/l3kernel/expl3-code.tex)
(/usr/local/texlive/2014/texmf-dist/tex/latex/l3kernel/l3pdfmode.def)
(/usr/local/texlive/2014/texmf-dist/tex/latex/l3kernel/l3unicode-data.def))
 test
test test test test test test test test
    ^^O^^W^^_^^W^^R^^A^^P indent    ^^O^^W^^_^^W^^R^^A^^P unindent test test test 
test test test test test
    ^^O^^W^^_^^W^^R^^A^^P indent    ^^O^^W^^_^^W^^R^^A^^P unindent test test test 
test test test test test
    ^^O^^W^^_^^W^^R^^A^^P indent    ^^O^^W^^_^^W^^R^^A^^P unindent test test test 
test test test
 )
No pages of output.
Transcript written on mwe.log.
@vermiculus vermiculus changed the title \iow_indent:n doesn't work with \iow_term:n \iow_indent:n doesn't work with \iow_term:n when using \iow_wrap:nnnN May 23, 2015
@josephwright josephwright added the bug Something isn't working label May 23, 2015
@josephwright josephwright self-assigned this May 23, 2015
@blefloch
Copy link
Member

blefloch commented Jun 5, 2015

The first use (putting the text to indent as an argument to \iow_indent:n) is the correct one, and if you do

\iow_wrap:nnnN { \iow_indent:n { \prg_replicate:nn { 30 } { test~ } } } { } { } \iow_term:n

you'll see that the first line gets only one space while further lines get more. I'll try to find a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants