From d82b9434e17f074602ef472fd09ce0bacd17880d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20D=C3=ADaz=20M=C3=A1s?= Date: Tue, 19 Dec 2017 19:52:41 +0100 Subject: [PATCH] Only print items (Params::prValue) when size > 0 --- src/actions.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/actions.cpp b/src/actions.cpp index e5baa75f..3125cf54 100644 --- a/src/actions.cpp +++ b/src/actions.cpp @@ -704,8 +704,9 @@ namespace Action { << std::setfill(' ') << std::right << md.size(); } - if (Params::instance().printItems_ & Params::prValue) { - if (!first) std::cout << " "; + if (Params::instance().printItems_ & Params::prValue && md.size() > 0) { + if (!first) + std::cout << " "; first = false; if ( Params::instance().binary_ && ( md.typeId() == Exiv2::undefined