Removed empty space before dialogue entry (bug #3892)

This commit is contained in:
Andrei Kortunov 2017-06-04 23:20:43 +04:00
parent 9fd0d54a35
commit c2962ced90

View file

@ -116,10 +116,14 @@ namespace MWGui
void Response::write(BookTypesetter::Ptr typesetter, KeywordSearchT* keywordSearch, std::map<std::string, Link*>& topicLinks) const
{
BookTypesetter::Style* title = typesetter->createStyle("", getDialogueTextColour("header"));
typesetter->sectionBreak(9);
if (mTitle != "")
typesetter->write(title, to_utf8_span(mTitle.c_str()));
{
typesetter->sectionBreak(9);
typesetter->write(title, to_utf8_span(mTitle.c_str()));
}
typesetter->sectionBreak();
typedef std::pair<size_t, size_t> Range;
std::map<Range, intptr_t> hyperLinks;