]> git.lyx.org Git - lyx.git/blobdiff - src/bufferparams.C
Scons: update_po target, part one: language_l10n.pot
[lyx.git] / src / bufferparams.C
index 03d3758a838f571d0b87f5540ea65df762006cc7..28d56613bccd7c89948b537227e883a19ea119a6 100644 (file)
@@ -603,7 +603,7 @@ void BufferParams::writeFile(ostream & os) const
        // the textclass
        os << "\\textclass " << textclasslist[textclass].name() << '\n';
 
-       // then the the preamble
+       // then the preamble
        if (!preamble.empty()) {
                // remove '\n' from the end of preamble
                string const tmppreamble = rtrim(preamble, "\n");
@@ -876,7 +876,8 @@ bool BufferParams::writeLaTeX(odocstream & os, LaTeXFeatures & features,
                        os << "]{inputenc}\n";
                        texrow.newline();
                }
-       } else if (inputenc != "default" && inputenc != "tis620-0") {
+       } else if (inputenc != "default" && inputenc != "tis620-0" &&
+                  inputenc != "ascii") {
                os << "\\usepackage[" << from_ascii(inputenc)
                   << "]{inputenc}\n";
                texrow.newline();