]> git.lyx.org Git - lyx.git/commitdiff
Do not add empty \parskip definition (reported in #12946)
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 30 Oct 2023 08:22:14 +0000 (09:22 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 30 Oct 2023 08:22:14 +0000 (09:22 +0100)
src/BufferParams.cpp

index 36ebb21e99cc95db360546f5880eb216153509c3..22f865458efa86f461e06f78cfee6a0080d4608c 100644 (file)
@@ -2179,7 +2179,7 @@ bool BufferParams::writeLaTeX(otexstream & os, LaTeXFeatures & features,
                        if (!psopt.empty())
                                psopt = "[skip=" + psopt + "]";
                        os << "\\usepackage" + psopt + "{parskip}\n";
-               } else {
+               } else if (!psopt.empty()) {
                        os << "\\setlength{\\parskip}{" + psopt + "}\n";
                }
        } else {