]> git.lyx.org Git - lyx.git/blobdiff - src/PersonalWordList.cpp
GuiTabular.cpp: don't hardcode decimal align combobox item
[lyx.git] / src / PersonalWordList.cpp
index 87187e912fd35852773b43a58a8aefd1c4658772..75dcda6aa70d8d2a786520c4fbc090e17666e23e 100644 (file)
@@ -61,7 +61,7 @@ void PersonalWordList::load()
        if (line == header()) {
                while (ifs) {
                        getline(ifs, line);
-                       if (!line.empty() && !line[0] == '#') {
+                       if (!line.empty() && !(line[0] == '#')) {
                                docstring const word = from_utf8(line);
                                insert(word);
                        }
@@ -86,8 +86,6 @@ void PersonalWordList::save()
        docstring_list::const_iterator et = words_.end();
 
        ofs << header() << "\n";
-       ofs << "# encoding: utf-8\n";
-       ofs << "# one word per line\n";
        for (; it != et; ++it) {
                ofs << to_utf8(*it) << "\n";
        }