GNOME Bugzilla – Bug 403209
Name of a series does not show up in legend of chart if it contains "<"
Last modified: 2007-02-06 08:52:05 UTC
Using the win32 build 1.7.6. available at the Gnumeric homepage I experienced the following bug when generating a chart: If the Name of a data-series contains a "<" (smaller) then the name of the series does not show up in the legend of the chart. - This used to work with older Gnumeric versions (1.6.x versions) - The name does however show up if it contains ">" (larger) Expected behaviour: Whatever the name of the series is, it should always show up in the legend of a chart. To reproduces: 1. Insert a chart (e.g. XY-plot or line) 2. add a data series 3. add a name to the series which contains "<" (e.g. "BE x<25") 4. add a legend to the chart 5. result: the name of the series does not show up in the legend by the way: 6. if you replace "<" by a ">" the name shows up as expected. Thanks a lot for Gnumeric! Christian
That's because I've enabled markup for chart texts. It's nice because you can use gtk markup in order to do things like exponent or part of text in bold style. But I agree simple text with "<" characters should be displayed correctly without manually escaped them. That can be fixed quickly by disabling markup for user entered texts (name of series, titles...).
Thanks a lot for the fast reply! Of course it would be convenient to have some markup-available for the name of the series. However, I would suggest to make this optional, within the properties dialogue and I strongly suggest to disable it by default. and I suggest to integrate some simple documentation on how that markup language works into the Gnumeric documentation. By the way: How can I escape the "<" characters? I tried with "\<" (latex-style) but that didn't work.
You can use the following entities: & < > " '
Fixed in CVS. I've disabled pango markup for all user entered texts. In the future we'll probably add a way to enter formated text. But for now, I don't want to expose the markup language to user, nor use this format for storage. (MathML would be a better format).