From: "Basil L. Contovounesios" <contovob@tcd.ie>
To: "Mattias Engdegård" <mattiase@acm.org>
Cc: 35331@debbugs.gnu.org
Subject: bug#35331: [PATCH] Neater html table of old versions in ELPA
Date: Mon, 13 May 2019 15:25:07 +0100 [thread overview]
Message-ID: <87lfzae8jg.fsf@tcd.ie> (raw)
In-Reply-To: <299F3CF6-3DA6-4B95-BFEB-B462875FBFBA@acm.org> ("Mattias Engdegård"'s message of "Mon, 13 May 2019 15:42:35 +0200")
Mattias Engdegård <mattiase@acm.org> writes:
> diff --git a/admin/archive-contents.el b/admin/archive-contents.el
> index de444e381..c4c2e5af1 100644
> --- a/admin/archive-contents.el
> +++ b/admin/archive-contents.el
> @@ -387,16 +387,14 @@ Rename DIR/ to PKG-VERS/, and return the descriptor."
>
> (defun archive--html-bytes-format (bytes) ;Aka memory-usage-format.
> (setq bytes (/ bytes 1024.0))
> - (let ((units '(;; "B"
> - "kB" "MB" "GB" "TB")))
> + (let ((units '("KiB" "MiB" "GiB" "TiB")))
> (while (>= bytes 1024)
> (setq bytes (/ bytes 1024.0))
> (setq units (cdr units)))
> (cond
> - ;; ((integerp bytes) (format "%4d%s" bytes (car units)))
> - ((>= bytes 100) (format "%4.0f%s" bytes (car units)))
> - ((>= bytes 10) (format "%4.1f%s" bytes (car units)))
> - (t (format "%4.2f%s" bytes (car units))))))
> + ((>= bytes 100) (format "%4.0f %s" bytes (car units)))
> + ((>= bytes 10) (format "%4.1f %s" bytes (car units)))
> + (t (format "%4.2f %s" bytes (car units))))))
Is it possible to reuse file-size-human-readable here?
Does the no-break space have to be a HTML entity,
or can it be Unicode ?\u00A0?
Thanks,
--
Basil
next prev parent reply other threads:[~2019-05-13 14:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-19 21:36 bug#35331: [PATCH] Neater html table of old versions in ELPA Mattias Engdegård
2019-04-21 16:09 ` Basil L. Contovounesios
2019-04-22 13:17 ` Mattias Engdegård
2019-05-13 13:42 ` Mattias Engdegård
2019-05-13 14:25 ` Basil L. Contovounesios [this message]
2019-05-13 15:18 ` Mattias Engdegård
2019-05-15 20:16 ` Mattias Engdegård
2019-06-26 11:41 ` Basil L. Contovounesios
2019-06-26 17:11 ` Mattias Engdegård
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lfzae8jg.fsf@tcd.ie \
--to=contovob@tcd.ie \
--cc=35331@debbugs.gnu.org \
--cc=mattiase@acm.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.