andymantell / node-wpautop

A Node.js port of Wordpress' wpautop() function
GNU General Public License v2.0
16 stars 7 forks source link

Fixes bug with overwritten <pre> tags #1

Closed jegtnes closed 8 years ago

jegtnes commented 8 years ago

The issue with several <pre> tags stems from the variable being overwritten every time the loop iterated, which explains why only the last <pre> tag persisted in the output. This wasn't a problem for most test cases, as they only made sure 1 <pre> tag behaved like it was meant to.