Changeset 1167 for trunk/modules/GetHtml


Ignore:
Timestamp:
02/17/09 20:21:45 (11 years ago)
Author:
ray
Message:

#1394 fullpage puts metas/ title all on the same line

File:
1 edited

Legend:

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

    r1154 r1167  
    110110        RegExp.multiline = true; 
    111111        var txt =  
    112         root.innerHTML.replace(Xinha.RE_tagName, function(str, p1, p2) { return p1 + p2.toLowerCase(); }) // lowercasize 
     112        root.innerHTML 
     113        .replace(Xinha.RE_tagName, function(str, p1, p2) { return p1 + p2.toLowerCase(); }) // lowercasize 
    113114        .replace(/\s*=\s*(([^'"][^>\s]*)([>\s])|"([^"]+)"|'([^']+)')/g, '="$2$4$5"$3') //add attribute quotes 
    114         .replace(/<(link|meta)((\s*\S*="[^"]*")*)>/g, '<$1$2 />'); //terminate singlet tags 
     115        .replace(/<(link|meta)((\s*\S*="[^"]*")*)>([\n\r]*)/g, '<$1$2 />\n'); //terminate singlet tags 
    115116        RegExp.multiline = save_multiline; 
    116117        html += txt + '\n'; 
Note: See TracChangeset for help on using the changeset viewer.