Closed vivainio closed 11 years ago
I have html like this:
<img src="img/close_button.png" height="16" width="16" alt="Home" onclick=" mwl.switchClass('#search_title', 'show_title_search', 'show_title_main'); mwl.setGroupTarget('#navigateToggle', '#home', 'show', 'hide'); mwl.switchClass('#slider', 'show_miniapp', 'show_main'); mwl.scrollTo('#main');"/>
It produces jade like this
img(src='img/close_button.png', height='16', width='16', alt='Home', onclick=' mwl.switchClass("#search_title", "show_title_search", "show_title_main"); mwl.setGroupTarget("#navigateToggle", "#home", "show", "hide"); mwl.switchClass("#slider", "show_miniapp", "show_main"); mwl.scrollTo("#main");')
This doesn't pass jade parser. html2jade should prefix the line endings with \ within the attritube value, like this:
img(src='img/close_button.png', height='16', width='16', alt='Home', onclick=' \ mwl.switchClass("#search_title", "show_title_search", "show_title_main"); \ mwl.setGroupTarget("#navigateToggle", "#home", "show", "hide"); \ mwl.switchClass("#slider", "show_miniapp", "show_main"); \ mwl.scrollTo("#main");')
You're absolutely right. I left out the corner case completely. Doh.
Thanks, works fine with my html document now.
I have html like this:
It produces jade like this
This doesn't pass jade parser. html2jade should prefix the line endings with \ within the attritube value, like this: