User:Cacycle/wikEd dev.js: Difference between revisions

Content deleted Content added
0.9.91g (July 18, 2010)
0.9.91h (July 20, 2010)
Line 2:
 
// version info
window.wikEdProgramVersion = window.wikEdProgramVersion || '0.9.91g91h';
window.wikEdProgramDate = window.wikEdProgramDate || 'July 1820, 2010';
 
/*
Line 9,624:
}
);
 
// obj.html = obj.html.replace(/\x00\s+/g, '\x00');
obj.html = obj.html.replace(/\s+(?=\x00)/g, '\x00');
 
// remove trailing linebreaks from table cells
Line 10,126 ⟶ 10,123:
['\x00(math)\\b[^\x00\x01]*\x01(.|\\n)*?\x00\\/math\\s*\x01', 'math', 'block'], // <math>...</math>
 
['(^|\\n)([ \xa0]+)(\\S[^\\n]*)', 'preform', 'block'], // "preformatted" text line (leading space) breaks templates
['(^|\\n)([\\*\\#\\:\\;]+)([^\\n]*)', 'list', 'block'], // list line
 
Line 10,311 ⟶ 10,308:
obj.html = content;
}
 
//// opening block tags and templates break link?
 
Line 10,388 ⟶ 10,384:
if (
( (tagClass == 'open') && (tag != 'template') ) ||
( (tagClass == 'block') && (tag != 'newlinePipe') && (tag != 'doublePipe') && (tag != 'pipe') && (tag != 'headerSep') && (tag != 'headerParam') && (tag != 'newline') && (tag != 'preform') ) //// preform ok?
) {
 
Line 10,874 ⟶ 10,870:
 
// list and preformatted (leading space) lines
case 'list':
case 'preform':
 
// ignore template parameters preceeded with newline-spaces
if (parseObj.lastOpenTagFiltered == 'template') {
wikEdParseObj.regExpTags.lastIndex = tagFrom + tagLength - parseObj.regExpMatch[tagMatchParenth + 3].length;
break;
}
case 'list':
 
// highlight line
Line 12,230 ⟶ 12,232:
insertRight = '</span><!--wikEdTableTag-->';
}
break;
*/
break;
case 'cellParam':
case 'cellSep':
Line 12,561 ⟶ 12,563:
 
// remove trailing blanks and newlines at end of text
obj.html = obj.html.replace(/((<br\b[^>]*>)|\s)+$/g, '');/////////
 
// remove leading spaces in lines
obj.html = obj.html.replace(/(<br\b[^>]*>)\n* *()/g, '$1');///////////
 
// textify so that no html formatting is submitted