AkelPad Forum Index AkelPad
Support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

codefold error with xml data

 
Post new topic   Reply to topic    AkelPad Forum Index -> Discussion (English)
View previous topic :: View next topic  
Author Message
rrudolph



Joined: 17 Dec 2013
Posts: 1

PostPosted: Tue Dec 17, 2013 5:37 pm    Post subject: codefold error with xml data Reply with quote

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:

<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>
Back to top
View user's profile Send private message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5529

PostPosted: Fri Dec 20, 2013 8:06 am    Post subject: Reply with quote

I suppose you mean code like:
Code:
<sub>"</sub>
because next code will work fine:
Code:
<sub>
"
</sub>

You should use &quot; instead of " in item text. If you want to use " in your way, comment out lines in "Skips:" section of xml.coder:
Code:
Skips:
;=============================
;Flags  Skip    Skip    Escape
;       start   end     char
;=============================
;1   `"`   `"`   ""
;1   "'"   "'"   ""
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AkelPad Forum Index -> Discussion (English) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SourceForge.net Logo Powered by phpBB © 2001, 2005 phpBB Group