NewsItem: Do not render _updates if not set
This commit is contained in:
@@ -128,7 +128,8 @@ void NewsItem::render () {
|
|||||||
if (_punchline.size ())
|
if (_punchline.size ())
|
||||||
std::cout << footnote.colorize (format ("{1}\n", _punchline));
|
std::cout << footnote.colorize (format ("{1}\n", _punchline));
|
||||||
|
|
||||||
std::cout << format ("{1}\n", _update);
|
if (_update.size ())
|
||||||
|
std::cout << format ("{1}\n", _update);
|
||||||
|
|
||||||
wait_for_enter ();
|
wait_for_enter ();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user