Skip to content

Commit

Permalink
text2image: Add linefeed to error message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stweil committed Aug 28, 2016
1 parent a1f0f36 commit 3420aca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion training/text2image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ int main(int argc, char** argv) {
if (!FLAGS_find_fonts && !FontUtils::IsAvailableFont(FLAGS_font.c_str())) {
string 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()) {
tprintf("Pango suggested font %s.\n", pango_name.c_str());
}
Expand Down

0 comments on commit 3420aca

Please sign in to comment.