Menu

#83 Code folding problem

v1.3
open-accepted
None
5
2013-12-23
2007-08-02
No

It appears that the code folding does not work for elements named "area". If you open the attached file, you should see that although the "-" boxes appear by the foo and notarea elements, there isn't one by the area element.

I first noticed this using XML Copy Editor 1.0.9.6 on Windows XP Professional SP2, but 1.1.0 still behaves the same way.

Discussion

  • Andy Stevens

    Andy Stevens - 2007-08-02

    Simple XML document that has the problem

     
  • Andy Stevens

    Andy Stevens - 2007-08-02

    Screenshot showing the problem

     
  • Andy Stevens

    Andy Stevens - 2007-08-02

    Logged In: YES
    user_id=247081
    Originator: YES

    File Added: screenshot.gif

     
  • gnschmidt

    gnschmidt - 2007-08-02
    • assigned_to: nobody --> gnschmidt
     
  • gnschmidt

    gnschmidt - 2007-08-02

    Logged In: YES
    user_id=1298822
    Originator: NO

    Thanks Andrew, will need to look into this on my return from holiday (11 Aug).

    Thanks especially for sample file and screenshot!

    -Gerald

     
  • gnschmidt

    gnschmidt - 2007-08-16

    Logged In: YES
    user_id=1298822
    Originator: NO

    Andrew,

    I haven't forgotten about this bug, but to be honest I haven't yet worked out what's going wrong. (I didn't write the lexer that controls highlighting and folding, but I'll check the source to see if that gives me any clues.)

    -Gerald

     
  • Kevin James

    Kevin James - 2009-02-13
    • assigned_to: gnschmidt --> kmjames
     
  • Kevin James

    Kevin James - 2009-02-13

    This is caused by a line in <wxWidgets>/src/stc/scintilla/src/LexHTML.cxx

    tagDontFold = (!isXml) && (NULL != strstr("meta link img area br hr input ",s));

    For some reason the IsXml is false, so !IsXml returns true. I checked and folding disappears for meta, link and all the other tags mentioned. I'll look into this some more.

     
  • Zane U. Ji

    Zane U. Ji - 2013-12-08

    It has been fixed in wxWidgets 2.9.0:
    http://trac.wxwidgets.org/changeset/50712

     
  • Zane U. Ji

    Zane U. Ji - 2013-12-08
    • status: open --> open-accepted
    • Group: --> v1.2.1.0
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.