diff --git a/games/devtest/mods/testformspec/formspec.lua b/games/devtest/mods/testformspec/formspec.lua index 6e1dd4946..758bad631 100644 --- a/games/devtest/mods/testformspec/formspec.lua +++ b/games/devtest/mods/testformspec/formspec.lua @@ -64,7 +64,7 @@ local inv_style_fs = [[ list[current_player;main;.5,7;8,4] ]] -local hypertext_basic = [[ +local hypertext_basic = [[A hypertext element Normal test This is a normal text. diff --git a/src/gui/guiHyperText.cpp b/src/gui/guiHyperText.cpp index 2dbdf3b99..76bc98a71 100644 --- a/src/gui/guiHyperText.cpp +++ b/src/gui/guiHyperText.cpp @@ -293,8 +293,8 @@ void ParsedText::pushChar(wchar_t c) else return; } else { - m_empty_paragraph = false; enterElement(ELEMENT_TEXT); + m_empty_paragraph = false; } m_element->text += c; }