gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master f7e34da: Match: printing newline after second


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master f7e34da: Match: printing newline after second output name in verbose mode
Date: Sat, 23 Mar 2019 19:36:43 -0400 (EDT)

branch: master
commit f7e34da5d6added3ffd9fa15e2e5e4c6d0dce13b
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>

    Match: printing newline after second output name in verbose mode
    
    Until now, I had forgotten to print a new-line after the name of the second
    output. On the command-line this would result in the terminal prompt being
    on the same line and in a shell, the next outputs were printed on the same
    line. Both caused confusion and is not expected
    
    With this commit, a new-line is printed to fix this issue.
---
 bin/match/match.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/match/match.c b/bin/match/match.c
index e32a74b..f2e8394 100644
--- a/bin/match/match.c
+++ b/bin/match/match.c
@@ -440,7 +440,7 @@ match_catalog(struct matchparams *p)
       fprintf(stdout, "Number of maching rows in both catalogs: %zu\n",
               nummatched);
       if(p->out2name && strcmp(p->out1name, p->out2name))
-        fprintf(stdout, "Output:\n %s\n %s", p->out1name, p->out2name);
+        fprintf(stdout, "Output:\n %s\n %s\n", p->out1name, p->out2name);
       else
         fprintf(stdout, "Output: %s\n", p->out1name);
     }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]