From: Alexis Laferrière Date: Tue, 21 Jul 2015 20:37:32 +0000 (-0400) Subject: contrib/rss_downloader: prettier output when the links are very long X-Git-Tag: v0.7.7~4^2~3 X-Git-Url: http://nitlanguage.org contrib/rss_downloader: prettier output when the links are very long Signed-off-by: Alexis Laferrière --- diff --git a/contrib/rss_downloader/src/rss_downloader.nit b/contrib/rss_downloader/src/rss_downloader.nit index d512e9f..83e47c2 100644 --- a/contrib/rss_downloader/src/rss_downloader.nit +++ b/contrib/rss_downloader/src/rss_downloader.nit @@ -151,7 +151,7 @@ class Downloader if sys.verbose then print "\n# {matches.length} matching elements:" - print matches.join("\n") + print "* " + matches.join("\n* ") print "\n# Downloading..." end @@ -162,13 +162,13 @@ class Downloader # Do not download a file that is not unique according to `unique_id` if not element.is_unique_exception(config) then # We make some exceptions - if sys.verbose then print "File in log, skipping {element}" + if sys.verbose then print "- Skipping {element}" continue end end # Download element - if sys.verbose then print "Acting on {element}" + if sys.verbose then print "+ Acting on {element}" tool_config.act_on element