Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glosslist broken in HTML #432

Open
tomschr opened this issue Mar 16, 2021 · 2 comments · May be fixed by #433
Open

glosslist broken in HTML #432

tomschr opened this issue Mar 16, 2021 · 2 comments · May be fixed by #433
Assignees
Labels
effort:M Medium effort format-html html, xhtml, html5, webhelp, jsp support skill-css/js CSS and/or Javascript knowledge necessary skill-xslt XSLT knowledge necessary styles-2022 "suse2022-ns" styles

Comments

@tomschr
Copy link
Collaborator

tomschr commented Mar 16, 2021

Problem Description

The current stylesheets creates broken HTML for a <glosslist>.

Here is an example:

<glosslist>
    <glossentry>
    <glossterm>compute nodes</glossterm>
    <glossdef>
        <para>
        A node which receives tasks to be run as jobs.
        </para>
        <glossseealso linkend="gl-head-nodes"/>
    </glossdef>
    </glossentry>
    <glossentry xml:id="gl-head-nodes">
    <glossterm>head node(s)</glossterm>
    <glossdef>
        <para>
        A node which receives tasks to be run as jobs.
        </para>
    </glossdef>
    </glossentry>
</glosslist

After transforming it to HTML, you get this output:

glosslist-in-html

So to summarize the issues here:

  1. the spaces between a glossdef and the next glossterm is broken.
  2. the reference of the glossseealso does not work. (see "Update" below)

For PDF, only point 2 is broken. it works.

Expected Behaviour

I would propose to use the same rendering than in PDF: render it as a variablelist. We have that already in PDF, so we only need to adapt it to HTML.


Update: I made a mistake: it should be <glossseealso otherterm="..."/> instead of <glossseealso linkend="gl-head-nodes"/>. If I use this, point 2 from above works.

@tomschr tomschr added format-html html, xhtml, html5, webhelp, jsp support skill-css/js CSS and/or Javascript knowledge necessary labels Mar 16, 2021
tomschr added a commit that referenced this issue Mar 16, 2021
Add CSS rules for glosslist to mimick appearance of variablelist
@tomschr tomschr linked a pull request Mar 16, 2021 that will close this issue
@janajaeger
Copy link
Contributor

What's the status of this PR, @tomschr ? Can you close this one?

tomschr added a commit that referenced this issue Jul 26, 2022
Add CSS rules for glosslist to mimick appearance of variablelist
@tomschr tomschr added skill-xslt XSLT knowledge necessary styles-2022 "suse2022-ns" styles effort:M Medium effort labels Oct 25, 2022
tomschr added a commit that referenced this issue Nov 24, 2022
Add CSS rules for glosslist to mimick appearance of variablelist
@tomschr
Copy link
Collaborator Author

tomschr commented Nov 28, 2022

Needs to be investigated further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort:M Medium effort format-html html, xhtml, html5, webhelp, jsp support skill-css/js CSS and/or Javascript knowledge necessary skill-xslt XSLT knowledge necessary styles-2022 "suse2022-ns" styles
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants