Vergleich admin/jscripts/codemirror/addon/fold/xml-fold.js - 1.8.3 - 1.8.10

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 151Zeile 151
    if (iter.text.indexOf(">") == -1 && iter.text.indexOf("<") == -1) return;
var end = toTagEnd(iter), to = end && Pos(iter.line, iter.ch);
var start = end && toTagStart(iter);

    if (iter.text.indexOf(">") == -1 && iter.text.indexOf("<") == -1) return;
var end = toTagEnd(iter), to = end && Pos(iter.line, iter.ch);
var start = end && toTagStart(iter);

    if (!end || end == "selfClose" || !start || cmp(iter, pos) > 0) return;

    if (!end || !start || cmp(iter, pos) > 0) return;

    var here = {from: Pos(iter.line, iter.ch), to: to, tag: start[2]};

    var here = {from: Pos(iter.line, iter.ch), to: to, tag: start[2]};

 
    if (end == "selfClose") return {open: here, close: null, at: "open"};


if (start[1]) { // closing tag
return {open: findMatchingOpen(iter, start[2]), close: here, at: "close"};


if (start[1]) { // closing tag
return {open: findMatchingOpen(iter, start[2]), close: here, at: "close"};