[Goodies-dev] [Bug 8316] Genmon doesn't like `&'

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Wed Feb 15 04:23:26 CET 2012


https://bugzilla.xfce.org/show_bug.cgi?id=8316

--- Comment #6 from David Schneider <dnschneid at gmail.com> 2012-02-15 04:23:26 CET ---
(Apologies for posting twice.)

The other thing to consider is existing script breakage.  There are four types
of scripts:
1) Scripts that do not use <txt> and do not want Pango markup. (#1)
2) Scripts that do not use <txt> and expect Pango markup. (#4)
3) Scripts that use <txt> and do not want Pango markup. (#2)
4) Scripts that use <txt> and want Pango markup. (#3)

The #'s at the end are my guess as to the popularity of that kind of script,
with #1 being most popular.  Perhaps #2 and #1 are swapped.

Current version:
Scripts 1 and 3 are broken.

Possible changes:
A) Adding a <raw> tag:
Script 1 will remain broken (assuming B is not done). Script 3 will remain
broken until the developer/user notices the existence of <raw> and updates
their scripts. New users creating 3 will use <raw> and will have working
scripts.

B) Removing Pango markup for simple scripts:
Script 1 will automagically be fixed. Script 2 will be obviously broken (it
will display the pango tags). User will check the docs (since their script
obviously broke) and see that they need to switch to <txt>.  They will fix
their script.  This does not affect 3 or 4 (can do A as well).

C) Making a <pango> tag, and making the current <txt> tag mean raw text.
Script 3 will be automagically fixed. Script 4 will be obviously broken (it
will display the pango tags). For the same reason as in B, the user will fix
their script to use <pango>.  This does not affect 1 or 2 (can do B).


Now that I consider this, I would actually recommend B and C: making a <pango>
tag and making <txt> and old-style interpreted as raw text.  Scripts 1 and 3
will be fixed (users may not even realize their script was broken before), and
2 and 4 (which I believe far rarer) will break in a very obvious way that is
easily remedied when the user checks the docs.  Using the attached patch does
not help the people who do not realize why their script is broken (since the
issue is rare and hard to catch).

-- 
Configure bugmail: https://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the Goodies-dev mailing list