Skip to content

Commit

Permalink
Bug 1638086 - show multiple subsequent spaces in file listings, r=val…
Browse files Browse the repository at this point in the history
…entin

Using `white-space: pre` avoids collapsing multiple spaces as HTML is wont to do.

With thanks to Jelle Geerts for reporting this and providing a strategy to patch this.

Differential Revision: https://phabricator.services.mozilla.com/D77246
  • Loading branch information
gijsk committed May 29, 2020
1 parent 687bcc2 commit 2dc589c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions toolkit/themes/osx/global/dirListing/dirListing.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ a:hover {
text-decoration: underline;
}

/* ensure multiple spaces are shown correctly. */
td:first-child > a {
white-space: pre;
}

p {
font-size: 110%;
}
Expand Down
5 changes: 5 additions & 0 deletions toolkit/themes/windows/global/dirListing/dirListing.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ a:hover {
text-decoration: underline;
}

/* ensure multiple spaces are shown correctly. */
td:first-child > a {
white-space: pre;
}

p {
font-size: 110%;
}
Expand Down

0 comments on commit 2dc589c

Please sign in to comment.