diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2015-04-09 15:06:06 -0700 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2015-04-09 15:06:06 -0700 |
commit | 0e0a3a83bfd4d57dced9e75383125d636e49adaa (patch) | |
tree | dbf890f782b51a9b205614092a8e8d2fcc46f337 | |
parent | df05ec0d05062a911efc929b1ea32ef8d526d0e2 (diff) | |
download | pango-0e0a3a83bfd4d57dced9e75383125d636e49adaa.tar.gz |
pango-view: accept comma as well as space as --margin separator
-rw-r--r-- | pango-view/viewer-render.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pango-view/viewer-render.c b/pango-view/viewer-render.c index f2de0aac..89800ffa 100644 --- a/pango-view/viewer-render.c +++ b/pango-view/viewer-render.c @@ -552,7 +552,7 @@ parse_margin (const char *name G_GNUC_UNUSED, gpointer data G_GNUC_UNUSED, GError **error) { - switch (sscanf (arg, "%d %d %d %d", &opt_margin_t, &opt_margin_r, &opt_margin_b, &opt_margin_l)) + switch (sscanf (arg, "%d%*[ ,]%d%*[ ,]%d%*[ ,]%d", &opt_margin_t, &opt_margin_r, &opt_margin_b, &opt_margin_l)) { case 0: { |