Changeset 864 for trunk/modules/GetHtml


Ignore:
Timestamp:
07/14/07 18:51:51 (12 years ago)
Author:
ray
Message:

Ticket #968 (reopened) spaces are stripped from before and after tags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/GetHtml/DOMwalk.js

    r863 r864  
    5252}; 
    5353 
    54 Xinha.emptyAttributes = " checked disabled ismap readonly nowrap compact declare selected defer multiple noresize noshade "; 
    55 Xinha.elGetsNewLine = function (el) { return (" br hr  meta link title ".indexOf(" " + el.tagName.toLowerCase() + " ") != -1);}; 
     54Xinha.emptyAttributes = " checked disabled ismap readonly nowrap compact declare selected defer multiple noresize noshade " 
    5655 
    5756Xinha.getHTMLWrapper = function(root, outputRoot, editor, indent) 
     
    133132      { 
    134133        closed = (!(root.hasChildNodes() || Xinha.needsClosingTag(root))); 
    135         html += ((Xinha.isBlockElement(root) || Xinha.elGetsNewLine(root)) ? ('\n' + indent) : '') + "<" + root.tagName.toLowerCase(); 
     134        html += ((Xinha.isBlockElement(root)) ? ('\n' + indent) : '') + "<" + root.tagName.toLowerCase(); 
    136135        var attrs = root.attributes; 
    137136         
     
    304303      else 
    305304      { 
    306         html = Xinha.htmlEncode(root.data.trim()); 
     305        html = Xinha.htmlEncode(root.data); 
    307306      } 
    308307    break; 
Note: See TracChangeset for help on using the changeset viewer.