diff options
author | Tor Andersson <tor@ghostscript.com> | 2010-12-10 00:10:12 +0000 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2010-12-10 00:10:12 +0000 |
commit | 0898a505034f2cd20e0646a3bc604692f501d152 (patch) | |
tree | 2ccc8a169642ae86360413e82b0b72636a0263b5 /apps/pdfshow.c | |
parent | 795bb09f1c30e5b2f33582e87449ff882f1336ae (diff) | |
download | mupdf-0898a505034f2cd20e0646a3bc604692f501d152.tar.xz |
Sort dictionary keys when printing grepable output in pdfshow.
Diffstat (limited to 'apps/pdfshow.c')
-rw-r--r-- | apps/pdfshow.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/pdfshow.c b/apps/pdfshow.c index 570bf1c2..27bbd0e4 100644 --- a/apps/pdfshow.c +++ b/apps/pdfshow.c @@ -177,6 +177,8 @@ static void showgrep(char *filename) if (error) die(error); + fz_sortdict(obj); + printf("%s:%d: ", filename, i); fz_fprintobj(stdout, obj, 1); |