--- a/src/query/plaintorich.cpp
+++ b/src/query/plaintorich.cpp
@@ -435,6 +435,8 @@
             if (eol > 2)
                 eol = 2;
             while (eol) {
+		if (!m_inputhtml && m_eolbr)
+		    *olit += "<br>";
                 *olit += "\n";
                 eol--;
             }