Bug 72292 - <foo /> not properly autocompleted
Summary: <foo /> not properly autocompleted
Status: RESOLVED FIXED
Alias: None
Product: quanta
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: András Manţia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-10 08:08 UTC by Charles Phoenix
Modified: 2004-01-12 11:36 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charles Phoenix 2004-01-10 08:08:34 UTC
Version:           3.2-Beta2 (using KDE 3.1.4)
Installed from:    Gentoo
Compiler:          gcc version 3.3.2 20031022 (Gentoo Linux 3.3.2-r2, propolice)
OS:          Linux (i686) release 2.4.23_pre8-gss

<br />  becomes <br / />

<test /> becomes <test /></test>

that's it :)

Other than maybe becoming xml aware? Any plans to make quanta an xml editor?
Comment 1 András Manţia 2004-01-12 11:36:33 UTC
Subject: quanta_be: quanta/quanta

CVS commit by amantia: 

Don't close unknown single tags.
BTW, Quanta already tries to be a DTD indepentent XML & Script language editor.

CCMAIL: 72292-done@bugs.kde.org


  M +1 -1      document.cpp   1.216.2.20


--- quanta/quanta/document.cpp  #1.216.2.19:1.216.2.20
@@ -782,5 +782,5 @@ bool Document::xmlAutoCompletion(int lin
     } else
     if (string == ">" && !tagName.isEmpty() && tagName[0] != '!' &&
-        tagName[0] != '/' && !tagName.endsWith("/") &&
+        tagName[0] != '/' && !tagName.endsWith("/") && !s.endsWith("/>") &&
         qConfig.closeTags &&
         currentDTD(true)->family == Xml) //close unknown tags