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
heredocs get tabs removed when asked to dedent whitespace #3299
Comments
From @FROGGS<FROGGS> p: say qq:to/EOF/ ~~ /\t/;\thelloEOF# the tab is preserved In the second example it is meant to strip four space chars, but additionally it converts the tabs to space chars. Which is bad for e.g. Makefiles. |
From @masakOn Sun Dec 29 08:24:44 2013, FROGGS.de wrote:
I agree. S32/Str is a bit vague about what to do in this case. It talks about different policies (spaces only, only some other \h char, or mixed types) when *adding* spaces, but it doesn't mention what to do when removing spaces. I'm fine with clarifying the spec, as long as we err on the side of sanity/consistency. Feel free to run any patches through me for review. |
From @jnthnOn Sat Jan 04 02:26:52 2014, masak wrote:
TimToady++ confirmed that \t falls under the same rule as \r, \n, and so forth - that is, we should be interpolating it after considering the dedent. I've implemented that now, and it's tested in S02-literals/quoting.t. /jnthn |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#120895 (status was 'resolved')
Searchable as RT120895$
The text was updated successfully, but these errors were encountered: