Bug fix in formatJournalEntry, gh-851

just a fix for #851