summaryrefslogtreecommitdiff
path: root/pango/pango-attributes.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-01-18 12:30:38 -0500
committerMatthias Clasen <mclasen@redhat.com>2022-01-18 14:43:05 -0500
commit54794dc9becb0d67fb1bcfd1a980d2bfafda1e77 (patch)
treee58ffae1de063d7d9afb50dd7509bc8deee1c15f /pango/pango-attributes.c
parent48a8ab2f6f6d532ee3d5058e32afe5c7f2a53b47 (diff)
downloadpango-54794dc9becb0d67fb1bcfd1a980d2bfafda1e77.tar.gz
Fix a g_ascii_formatd callfix-asciid-call
We were passing a format specifier that starts with ' ', which some implementations of that API don't like. This change removes an extraneous space from the output. Update affected tests. Fixes: #659
Diffstat (limited to 'pango/pango-attributes.c')
-rw-r--r--pango/pango-attributes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index 696f9ba1..60d14706 100644
--- a/pango/pango-attributes.c
+++ b/pango/pango-attributes.c
@@ -2646,7 +2646,7 @@ attr_print (GString *str,
else if ((flt = pango_attribute_as_float (attr)) != NULL)
{
char buf[20];
- g_ascii_formatd (buf, 20, " %f", flt->value);
+ g_ascii_formatd (buf, 20, "%f", flt->value);
g_string_append_printf (str, " %s", buf);
}
else if ((font = pango_attribute_as_font_desc (attr)) != NULL)