pc035860 / angular-highlightjs

AngularJS directive for syntax highlighting with highlight.js
http://pc035860.github.io/angular-highlightjs/example/
MIT License
294 stars 53 forks source link

fix(\n): Fix first occurrence of \n line ending #13

Closed remcohaszing closed 10 years ago

remcohaszing commented 10 years ago

Previously the first occurrence of a '\n' or '\r' character would be removed if the file did not start with \r\n.

Fixes Issue #9. This turned out to be a bug after all. I was onable to reproduce it on plunkr, because the loaded template contains \r\n line endings.

pc035860 commented 10 years ago

Nice! Thanks for the PR!