Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
img cleanup was adding un-necessary space
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Mitchell authored and cheeaun committed Nov 7, 2009
1 parent 940677a commit 3b012a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/MooEditable/MooEditable.js
Expand Up @@ -608,7 +608,7 @@ this.MooEditable = new Class({

//make img tags xhtml compatible <img>,<img></img> -> <img/>
if (this.options.xhtml){
source = source.replace(/<img([^>]+)(\s*[^\/])>(<\/img>)*/gi, '<img $1$2 />');
source = source.replace(/<img([^>]+)(\s*[^\/])>(<\/img>)*/gi, '<img$1$2 />');
}

//remove double <p> tags and empty <p> tags
Expand Down

0 comments on commit 3b012a5

Please sign in to comment.