ProgressBar left margin trick

This commit is contained in:
erwanlr
2013-04-14 18:03:59 +02:00
parent df5b8b9c35
commit 7c2c2305fb

View File

@@ -23,7 +23,7 @@ class WpItems < Array
exclude_content: options[:exclude_content] ? %r{#{options[:exclude_content]}} : nil
}
progress_bar = ProgressBar.create(format: '%t %a <%B> (%c / %C) %P%% %e',
title: ' ', # Otherwise 'Progress' replaces the title
title: ' ', # Used to craete a left margin
length: 120,
total: targets.size) if options[:show_progression]