Bug 72292

Summary: <foo /> not properly autocompleted
Product: quanta Reporter: Charles Phoenix <phoenixreads>
Component: generalAssignee: András Manţia <amantia>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

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