5digits / dactyl

Pentadactyl and other related Gecko extensions
Other
470 stars 98 forks source link

A recent commit has broken HEREDOC notation in .pentadactylrc #114

Closed ghost closed 8 years ago

ghost commented 8 years ago

(latest commit of pentadactyl as of writing, Firefox 45.0a2)

For instance...

js <<EOF
    window.toggle_navbar = function() {
        var nb=document.getElementById('nav-bar');
        var ub=document.getElementById('urlbar');
        ub.style.visibility = (nb.style.visibility=='') ? 'collapse' : '';
        nb.style.visibility = (nb.style.visibility=='') ? 'collapse' : '';
        nb.style.overflow = (nb.style.height=='') ? '' : 'hidden';
    }

    var nb=document.getElementById('nav-bar');
    if (nb.style.visibility == '' && nb.style.overflow == '')
        toggle_navbar()
EOF

Will now cause a flood of errors when loading, like so

:js itself still works fine if it's on one line.