[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdewebdev/quanta/src
From: Andras Mantia <amantia () kde ! org>
Date: 2005-02-28 9:20:48
Message-ID: 20050228092048.5768618221 () office ! kde ! org
[Download RAW message or body]
CVS commit by amantia:
Don't delete the line after <!DOCTYPE ...> when changing the DTD.
May I backport now?
CCMAIL: kde-core-devel@kde.org
M +5 -3 document.cpp 1.368
--- kdewebdev/quanta/src/document.cpp #1.367:1.368
@@ -1515,5 +1515,7 @@ QString Document::findDTDName(Tag **tag)
if (pos != -1) //parse the found !DOCTYPE tag
{
+ int bl, bc, el, ec;
line = i;
+ bl = line;
startPos = text.findRev('<',pos);
while (startPos == -1 && line >=0)
@@ -1521,4 +1523,5 @@ QString Document::findDTDName(Tag **tag)
text = editIf->textLine(line);
startPos = text.findRev('<');
+ bl = line;
line--;
}
@@ -1528,14 +1531,14 @@ QString Document::findDTDName(Tag **tag)
continue;
}
- int bl, bc, el, ec;
- bl = line++;
bc = startPos;
line = i;
text = editIf->textLine(i);
startPos = text.find('>',pos);
+ el = line;
while (startPos == -1 && line < endLine)
{
text = editIf->textLine(line);
startPos = text.find('>');
+ el = line;
line++;
}
@@ -1545,5 +1548,4 @@ QString Document::findDTDName(Tag **tag)
continue;
}
- el = line--;
ec = startPos + 1;
*tag = new Tag();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic