Summary: | Quanta Deletes #include comments automatically without asking | ||
---|---|---|---|
Product: | [Unmaintained] quanta | Reporter: | Steve Clarke <trumpton6> |
Component: | general | Assignee: | András Manţia <amantia> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 3.2.2 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Steve Clarke
2004-05-08 21:28:40 UTC
I thought that this is fixed in 3.2.2. But no, I can also reproduce. :-( CVS commit by amantia: (Once again) don't lose the comment text from inside a comment. Backport will follow. CCMAIL: 81162-done@bugs.kde.org M +2 -0 ChangeLog 1.279 M +27 -0 parsers/saparser.cpp 1.43 --- kdewebdev/quanta/ChangeLog #1.278:1.279 @@ -4,4 +4,6 @@ Version 3.3 BE 3 (Release date: xx-xx-2004; Started 07-05-2004): - bugfixes: + - VPL: + - (once again) don't lose the comment text from inside a comment [#81162] - correctly load the plugins toolbar [#81031] - correctly size the DTD toolbar even when just one toolbar is loaded [#81063] --- kdewebdev/quanta/parsers/saparser.cpp #1.42:1.43 @@ -882,5 +882,32 @@ void SAParser::slotParseNodeInDetail() } else { + Node *node = m_currentNode; m_currentNode = m_currentNode->nextSibling(); + if (node->tag->type == Tag::Comment) + { + Node *commentNode = new Node(node); + int line, col; + AreaStruct area; + node->tag->endPos(line, col); + area.bLine = line; + area.bCol = col + 1; + if (m_currentNode) + m_currentNode->tag->beginPos(line, col); + else + { + line = m_write->editIf->numLines() - 1; + col = m_write->editIf->lineLength(area.eLine); + } + area.eLine = line; + area.eCol = col - 1; + if (area.eCol < 0) + { + area.eLine--; + area.eCol = m_write->editIf->lineLength(area.eLine); + } + Tag *tag = new Tag(area, m_write, node->tag->dtd(), false); + commentNode->tag = tag; + node->child = commentNode; + } if (m_currentNode) { |