]> git.lyx.org Git - lyx.git/blobdiff - src/output_xhtml.cpp
Shortcut for LyX HTML output. (Makes my life easier!)
[lyx.git] / src / output_xhtml.cpp
index 03d10534331237b3da2146e28446b12d017f3b7a..2db915cd94568ee7c05c6f5e5260cc377798532d 100644 (file)
@@ -479,8 +479,10 @@ ParagraphList::const_iterator makeParagraphs(Buffer const & buf,
 
                // If we are already in a paragraph, and this is the first one, then we
                // do not want to open the paragraph tag.
-               bool const opened = 
-                       (par == pbegin && runparams.html_in_par) ? false : true;
+               // we also do not want to open it if the current layout does not permit
+               // multiple paragraphs.
+               bool const opened = runparams.html_make_pars &&
+                       (par != pbegin || !runparams.html_in_par);
                if (opened)
                        openTag(xs, lay);
                docstring const deferred =