For the case in which one wants to include a multi-line string in an array, I have been unable to find any notation which passes. If one tries to use a single pair of quotes for the entire string, then it raises an error about array indentation. If one tries to to use multiple strings with concatenation, then it raises an error about unnecessary concatenation. This leaves the options of putting everything in one-line or using temp variables, but those options seem less legible.

I've posted an example at https://gist.github.com/totten/8f0881bfdcd00901c826 . (I tried posting here, but the preview comes out a little wonky.)

Comments

  • klausi committed 02885ee on 8.x-2.x
    Issue #2408911: Fixed false positives with multi-line strings inside an...
klausi’s picture

Status: Active » Fixed

Fixed, thanks for reproting!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.