text2image: Add linefeed to error message

This changes the error message for a missing font from

  Could not find font named Times New Roman.Please correct --font arg.

(missing space after first sentence) to

  Could not find font named Times New Roman.
  Please correct --font arg.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2016-08-09 21:32:09 +02:00
parent a1f0f36ddc
commit 3420acabe5

View File

@ -444,7 +444,7 @@ int main(int argc, char** argv) {
if (!FLAGS_find_fonts && !FontUtils::IsAvailableFont(FLAGS_font.c_str())) { if (!FLAGS_find_fonts && !FontUtils::IsAvailableFont(FLAGS_font.c_str())) {
string pango_name; string pango_name;
if (!FontUtils::IsAvailableFont(FLAGS_font.c_str(), &pango_name)) { if (!FontUtils::IsAvailableFont(FLAGS_font.c_str(), &pango_name)) {
tprintf("Could not find font named %s.", FLAGS_font.c_str()); tprintf("Could not find font named %s.\n", FLAGS_font.c_str());
if (!pango_name.empty()) { if (!pango_name.empty()) {
tprintf("Pango suggested font %s.\n", pango_name.c_str()); tprintf("Pango suggested font %s.\n", pango_name.c_str());
} }