From e840ad8586f21480013252a7f879e10ee4e3c032 Mon Sep 17 00:00:00 2001 From: Justin Lemkul Date: Tue, 15 Feb 2011 14:07:38 -0500 Subject: [PATCH] Small fix to improve xpm2ps output --- src/tools/gmx_xpm2ps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/gmx_xpm2ps.c b/src/tools/gmx_xpm2ps.c index 97125eec90..89d803ff69 100644 --- a/src/tools/gmx_xpm2ps.c +++ b/src/tools/gmx_xpm2ps.c @@ -1229,11 +1229,11 @@ int gmx_xpm2ps(int argc,char *argv[]) fn=opt2fn("-f",NFILE,fnm); nmat=read_xpm_matrix(fn,&mat); - fprintf(stderr,"There are %d matrices in %s\n",nmat,fn); + fprintf(stderr,"There %s %d matri%s in %s\n",(nmat>1)?"are":"is",nmat,(nmat>1)?"ces":"x",fn); fn=opt2fn_null("-f2",NFILE,fnm); if (fn) { nmat2=read_xpm_matrix(fn,&mat2); - fprintf(stderr,"There are %d matrices in %s\n",nmat2,fn); + fprintf(stderr,"There %s %d matri%s in %s\n",(nmat2>1)?"are":"is",nmat2,(nmat2>1)?"ces":"x",fn); if (nmat != nmat2) { fprintf(stderr,"Different number of matrices, using the smallest number.\n"); nmat=nmat2=min(nmat,nmat2); -- 2.22.0