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

computeroutput fragments are not correctly formatted #93

Open
liff opened this issue Dec 10, 2018 · 0 comments
Open

computeroutput fragments are not correctly formatted #93

liff opened this issue Dec 10, 2018 · 0 comments

Comments

@liff
Copy link
Contributor

liff commented Dec 10, 2018

Some of the “screenshots” in nix-pills, such as this bit about show-derivation, use the <computeroutput> docbook tag. This tag is rendered as <code class="computeroutput"> in the HTML version. The NixOS site CSS sets white-space: normal for docbook code tags, which causes the computeroutput to render on one line, like this:

{ "/nix/store/z3hhlxbckx4g3n9sw91nnvlkjvyw754p-myname.drv": { "outputs": { "out": { "path": …

when it should look more like this:

{
  "/nix/store/z3hhlxbckx4g3n9sw91nnvlkjvyw754p-myname.drv": {
    "outputs": {
      "out": {
        "path": "/nix/store/40s0qmrfb45vlh6610rk29ym318dswdr-myname"
      }
    }, 
    …

The computeroutput tag is currently only used in nix-pills it looks like.

So, perhaps tweak the CSS a bit to deal with code.computeroutput or stop using computeroutput in nix-pills?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant