tEnsure no unnecessary newline is appended at end of dump - webdump - [FORK] git://git.codemadness.org/webdump
(HTM) git clone git://git.z3bra.org/webdump.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit bed530b4daefa4d846e400873db07753a79694f8
(DIR) parent 14ce2c581f0b10a0ce502c5fc2cd6b6618705169
(HTM) Author: Willy Goiffon <contact@z3bra.org>
Date: Fri, 29 Nov 2019 10:42:23 +0100
Ensure no unnecessary newline is appended at end of dump
Diffstat:
M webdump.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/webdump.c b/webdump.c
t@@ -849,7 +849,9 @@ main(int argc, char **argv)
if (showlinkrefs)
printlinkrefs();
#endif
- putchar('\n');
+
+ if (ncharsline)
+ putchar('\n');
printansi("\033[0m"); /* reset all attributes */