After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 534627 - gtk-doc uses non-standard HTML element
gtk-doc uses non-standard HTML element
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
1.10
Other All
: Normal minor
: 1.11
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2008-05-24 12:56 UTC by Felix Riemann
Modified: 2008-06-02 06:24 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
replace <nobr> using CSS (9.98 KB, patch)
2008-05-24 13:08 UTC, Felix Riemann
committed Details | Review

Description Felix Riemann 2008-05-24 12:56:25 UTC
Currently gtk-doc generated API docs use the <nobr> element for the shortcuts in the header (Top|Description|Object Hierarchy...). This is to prevent line breaks between them.
The <nobr> element is not part of the HTML standard and thus the resulting docs are not fully valid HTML.

The HTML standard offers the &nbsp char [1] as a replacement for this.
Theoretically it should be also possible to do this using the "white-space" CSS property.

[1] http://www.w3.org/TR/html401/struct/text.html#h-9.3.2.2
Comment 1 Felix Riemann 2008-05-24 13:08:03 UTC
Created attachment 111454 [details] [review]
replace <nobr> using CSS

This replaces the <nobr> using the "white-space" property.
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2008-06-02 06:24:17 UTC
Thanks for the patch!

2008-06-02  Stefan Kost  <ensonic@users.sf.net>

	patch by: Felix Riemann <friemann@svn.gnome.org>

	* gtk-doc.xsl:
	* style.css:
	  Produce valid html. Fixes #534627.