tinymce-plugins / codemagic

CodeMagic is an advanced source code editor plugin for Tinymce. It integrates the CodeMirror library for syntax coloring, and the JSBeautifier library for code formating and indentation.
MIT License
33 stars 14 forks source link

HTML Inline Elements support - whitespace sensitive formatting for inline tags #9

Closed bsy-web closed 11 years ago

bsy-web commented 11 years ago

HTML inline elements are sensitive to whitespace. Previous version of code applied new line to all tags which introduced unwnated whitespace in rendered HTML. I added and modified logic in beautify-html.js to handle these cases.

Change notes include:

tinymce-plugins commented 11 years ago

Thanks! I'll take a look at this.

tinymce-plugins commented 11 years ago

Thanks bsy-web! This is an excellent patch.

My only recommendation for future patches is to: