! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Don't strip text between nodes with --strip-content
Status:
CLOSED: FIXED

Comments

Description Nick Schermer editbugs 2008-06-30 21:17:30 CEST
The current code strips everything between the > and < brackets. This make exo-csource unusable with glade files, which uses "<node>Test</node>" a lot. Therefore content string should stop when it hits something else that a space/newline/tab.

The attached patch works, but only "<node>    label<node>" is stripped to "<node>label<node>". This is possible with glade if you use spaces in (for example) a label, but the xml spec says <![CDATA[]]> should be used in this case (or escaping the space). So technically it's glades fault, therefore I've put not effort in fixing this issue (well I did fixed it, but it only makes to code complicated for others' faults).

Tested the code with the glade files in xfce4-settings and the dbus xml from thunar produces exactly the same header.
Comment 1 Nick Schermer editbugs 2008-06-30 21:17:52 CEST
Created attachment 1719 
Patch
Comment 2 Nick Schermer editbugs 2008-07-17 12:51:45 CEST
It would also be nice to do a nano version bump, so we don't break on trunk until the first alpha release.

0.3.7 > 0.7.3.1
Comment 3 Nick Schermer editbugs 2008-07-17 12:52:50 CEST
Ghehe, 0.3.7.1
Comment 4 Nick Schermer editbugs 2008-07-17 18:21:27 CEST
Committed in revision 27330.

Bug #4187

Reported by:
Nick Schermer
Reported on: 2008-06-30
Last modified on: 2009-10-09

People

Assignee:
Nick Schermer
CC List:
0 users

Version

Version:
unspecified

Attachments

Patch (482 bytes, patch)
2008-06-30 21:17 CEST , Nick Schermer
no flags

Additional information