I'm getting this warning:
.../Bundle Support.tmbundle/Support/shared/lib/tm/htmloutput.rb:91: warning: Invalid ERB trim mode: "%-<>" (trim_mode: nil, 0, 1, 2, or String composed of '%' and/or '-', '>', '<>')
When I look at that line, I see:
ERB.new(HTMLOUTPUT_TEMPLATE, 0, '%-<>').result(binding)
My guess is that the warning is a consequence of this change:
https://redmine.ruby-lang.org/issues/15294
My guess is that '%-' is intended (experimentation shows that it is valid and works).
I suspect this was always invalid but the issue was ignored. m.
-- matt neuburg, phd = http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 12! http://shop.oreilly.com/product/0636920208662.do iOS 12 Fundamentals! http://shop.oreilly.com/product/0636920208655.do RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
On 17 Oct 2019, at 0:13, Matt Neuburg wrote:
My guess is that the warning is a consequence of this change:
https://redmine.ruby-lang.org/issues/15294
My guess is that '%-' is intended (experimentation shows that it is valid and works).
Thanks, I have made this change upstream: https://github.com/textmate/bundle-support.tmbundle/commit/b7d4245342ff52668...
I suspect this was always invalid but the issue was ignored. m.
The patch indicates that it’s invalid, though the documentation actually says the trim made can be “one or more of the following modifiers”:
% enables Ruby code processing for lines beginning with % <> omit newline for lines starting with <% and ending in %> > omit newline for lines ending in %> - omit blank lines ending in -%>
And indeed it does allow `%` with any of the following characters, but presumably the last 3 are mutually exclusive.