summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2015-04-09 15:06:06 -0700
committerBehdad Esfahbod <behdad@behdad.org>2015-04-09 15:06:06 -0700
commit0e0a3a83bfd4d57dced9e75383125d636e49adaa (patch)
treedbf890f782b51a9b205614092a8e8d2fcc46f337
parentdf05ec0d05062a911efc929b1ea32ef8d526d0e2 (diff)
downloadpango-0e0a3a83bfd4d57dced9e75383125d636e49adaa.tar.gz
pango-view: accept comma as well as space as --margin separator
-rw-r--r--pango-view/viewer-render.c2
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:
{