public inbox for
help / color / mirror / Atom feed
From: Vladimir Mezentsev <>
Subject: [binutils-gdb] gprofng: fix bug 29410 - Argument "&nbsp; 0." isn't numeric in numeric gt (>)
Date: Wed,  3 Aug 2022 17:23:24 +0000 (GMT)	[thread overview]
Message-ID: <> (raw);h=4d44946794e68cf79cfba467fa414a958dba2185

commit 4d44946794e68cf79cfba467fa414a958dba2185
Author: Ruud van der Pas <>
Date:   Tue Aug 2 10:13:48 2022 -0700

    gprofng: fix bug 29410 - Argument "&nbsp;0." isn't numeric in numeric gt (>)
    2022-08-02  Ruud van der Pas  <>
            PR gprofng/29410
            * gp-display-html/ Remove non-breaking spaces.

 gprofng/gp-display-html/ | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gprofng/gp-display-html/ b/gprofng/gp-display-html/
index ab21dbb0862..8131ecf4677 100644
--- a/gprofng/gp-display-html/
+++ b/gprofng/gp-display-html/
@@ -6020,6 +6020,12 @@ sub generate_dis_html
                       my $current_value; 
                       my $max_value;
                       $current_value = $current_metrics[$metric];
+# As part of the padding process, non-breaking spaces may have been inserted
+# in an earlier phase.  Temporarily remove these to make sure that the maximum
+# metric values can be computed.
+                      $current_value =~ s/&nbsp;//g;
                       if (exists ($max_metric_values[$metric]))
                           $max_value     = $max_metric_values[$metric];

                 reply	other threads:[~2022-08-03 17:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* 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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).