codefold error with xml data

English main discussion
Post Reply
  • Author
  • Message
Offline
Posts: 1
Joined: Tue Dec 17, 2013 5:27 pm

codefold error with xml data

Post by rrudolph »

Hi all,

I discovered a bug with xml codefold presentation:
If there is an odd number of double quotes in an xml text element,
codefold does not recognize the end of the element and displays a wrong and corrupt xml structure.
See following example (copy into an xml file and open with akelpad, codefold activated).

Would be nice if it gets fixed ... but even without will akelpad continue to be my favorite plain text editor. Thanks for supplying such a fine tool!

best regards
Robert

Code: Select all

<tag>
<sub>
normal text is ok
</sub>
<sub>
" breaks Coder:Codefold structure (end of XML element not recognized))
</sub>
<sub>
normal text is ok
</sub>
</tag>

Offline
Site Admin
Posts: 6311
Joined: Thu Jul 06, 2006 7:20 am

Post by Instructor »

I suppose you mean code like:

Code: Select all

<sub>"</sub>
because next code will work fine:

Code: Select all

<sub>
"
</sub>
You should use " instead of " in item text. If you want to use " in your way, comment out lines in "Skips:" section of xml.coder:

Code: Select all

Skips:
;=============================
;Flags  Skip    Skip    Escape
;       start   end     char
;=============================
;1	`"`	`"`	""
;1	"'"	"'"	""
Post Reply