Just a minor typo: using single-quotations instead of double-quotations so that line return "\n" becomes a literal '\n'. In any case, using the character PHP_EOL is safer as it's guaranteed to be safe across platforms (Windows, Macs, and Unix), without worrying about new-line characters ("\n") or return carriages ("\r").
Line 126 at the very end of the line:
'</span>\n';
should be
"</span>\n";
or better yet
'</span>' . PHP_EOL;
I can also wrap this in a patch too, but it's probably easier to commit to quick-fix.
Comments
Comment #1
JamesAn commentedOr better yet, just remove the line break. The label that wraps this element line-breaks write after its closing tag.
Comment #2
alex_b commentedFixed in head.