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 791710 - css documentation, non-breaking spaces/hyphens, and other details
css documentation, non-breaking spaces/hyphens, and other details
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Documentation
3.92.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2017-12-17 18:18 UTC by Arnaud Rebillout
Modified: 2018-01-02 17:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
0001-css-docs-Fix-some-angle-brackets-for-percentage.patch (1.80 KB, patch)
2017-12-17 18:20 UTC, Arnaud Rebillout
none Details | Review
0002-css-docs-Get-rid-of-non-breaking-spaces.patch (5.69 KB, patch)
2017-12-17 18:21 UTC, Arnaud Rebillout
none Details | Review
0003-css-docs-Get-rid-of-non-breaking-hyphens.patch (44.69 KB, patch)
2017-12-17 18:21 UTC, Arnaud Rebillout
none Details | Review
0004-css-docs-Ensure-the-first-column-does-not-break-for-.patch (56.95 KB, patch)
2017-12-17 18:21 UTC, Arnaud Rebillout
none Details | Review
0005-css-docs-Fix-refentry-and-refname.patch (1.61 KB, patch)
2017-12-17 18:22 UTC, Arnaud Rebillout
none Details | Review
0006-css-docs-Fix-duplicate-border-right-width.patch (1.68 KB, patch)
2017-12-17 18:22 UTC, Arnaud Rebillout
none Details | Review
0007-css-docs-swap-border-width-and-border-left-shorthand.patch (2.59 KB, patch)
2017-12-17 18:22 UTC, Arnaud Rebillout
none Details | Review
0008-css-docs-remove-useless-para.patch (1.09 KB, patch)
2017-12-17 18:23 UTC, Arnaud Rebillout
none Details | Review
0009-css-docs-fix-some-formatting-inconsistencies-along-t.patch (17.12 KB, patch)
2017-12-17 18:23 UTC, Arnaud Rebillout
none Details | Review
0010-gtk-remove-non-breaking-space-probably-there-by-mist.patch (1.02 KB, patch)
2017-12-17 18:23 UTC, Arnaud Rebillout
none Details | Review

Description Arnaud Rebillout 2017-12-17 18:18:00 UTC
This series of patches fix a lot of formatting details in the CSS documentation.

---- Non-breaking spaces and hyphens ----

This is related to this bug on gtk-doc:

    https://bugzilla.gnome.org/show_bug.cgi?id=783368

3 patches address this issue:

css docs: Get rid of non-breaking spaces
css docs: Get rid of non-breaking hyphens
css docs: Ensure the first column does not break for every table

As you can see, I removed all the non-breaking characters, and used the DocBook element '<phrase role="nowrap">' instead. I didn't enclose every possible css property within the '<phrase>' elements, as it would make the whole thing unreadable. I just focused on the first column of every table, since it's where the non-breaking characters were located anyway. By doing it systematically for every cell of the first column, at least we get something consistent and readable.

This will work only after the gtk-doc patch mentioned above is applied. In the meantime, for testing, it's still possible to modify the file 'style.css' in the generated documentation, and to add the line:

span.nowrap { white-space: nowrap; }

---- Other patches ----

The other patches are typo and formatting that I fixed while I was passing by.

Cheers !
Comment 1 Arnaud Rebillout 2017-12-17 18:20:33 UTC
Created attachment 365651 [details] [review]
0001-css-docs-Fix-some-angle-brackets-for-percentage.patch
Comment 2 Arnaud Rebillout 2017-12-17 18:21:06 UTC
Created attachment 365652 [details] [review]
0002-css-docs-Get-rid-of-non-breaking-spaces.patch
Comment 3 Arnaud Rebillout 2017-12-17 18:21:25 UTC
Created attachment 365653 [details] [review]
0003-css-docs-Get-rid-of-non-breaking-hyphens.patch
Comment 4 Arnaud Rebillout 2017-12-17 18:21:49 UTC
Created attachment 365654 [details] [review]
0004-css-docs-Ensure-the-first-column-does-not-break-for-.patch
Comment 5 Arnaud Rebillout 2017-12-17 18:22:12 UTC
Created attachment 365655 [details] [review]
0005-css-docs-Fix-refentry-and-refname.patch
Comment 6 Arnaud Rebillout 2017-12-17 18:22:34 UTC
Created attachment 365656 [details] [review]
0006-css-docs-Fix-duplicate-border-right-width.patch
Comment 7 Arnaud Rebillout 2017-12-17 18:22:51 UTC
Created attachment 365657 [details] [review]
0007-css-docs-swap-border-width-and-border-left-shorthand.patch
Comment 8 Arnaud Rebillout 2017-12-17 18:23:10 UTC
Created attachment 365658 [details] [review]
0008-css-docs-remove-useless-para.patch
Comment 9 Arnaud Rebillout 2017-12-17 18:23:31 UTC
Created attachment 365659 [details] [review]
0009-css-docs-fix-some-formatting-inconsistencies-along-t.patch
Comment 10 Arnaud Rebillout 2017-12-17 18:23:55 UTC
Created attachment 365660 [details] [review]
0010-gtk-remove-non-breaking-space-probably-there-by-mist.patch
Comment 11 Matthias Clasen 2017-12-17 22:26:26 UTC
This looks all good to me, thanks for working on this!

Are these patches for gtk-3-22 or for master ?
Comment 12 Arnaud Rebillout 2017-12-18 00:21:08 UTC
This is all for the master branch.
Comment 13 Daniel Boles 2018-01-01 18:47:17 UTC
Do we want these picked to 3-22 also? Certainly commit b42fc417bdfd26ebc5af65b3db8d8d646693029f should be, and I'll pick that shortly, but maybe the others would be good too. I've not tried them yet in case the answer to this question is no.
Comment 14 Matthias Clasen 2018-01-02 15:21:05 UTC
In general, keeping the branches closer together is a win, so if the patches apply without too much effort, picking them would be good.
Comment 15 Daniel Boles 2018-01-02 16:09:23 UTC
Cool. They seem to apply fairly easily. However, should we withhold these from gtk-3-22 until a gtk-doc release containing the relevant patch has been made? I figure that pushing them before then might be a pain for distro packagers.
Comment 16 Matthias Clasen 2018-01-02 17:47:30 UTC
It is harmless - all that will happen is that some of the property names in those tables get broken at the dashes.