revert change 37018 for PersonalWordList.cpp, commiting it was a mistake

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37019 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stephan Witt 2010-12-27 22:05:37 +00:00
parent 6be43c24f4
commit ef1561665c

View File

@ -61,7 +61,7 @@ void PersonalWordList::load()
if (line == header()) { if (line == header()) {
while (ifs) { while (ifs) {
getline(ifs, line); getline(ifs, line);
if (!line.empty() && !line[0] == '#') { if (!line.empty()) {
docstring const word = from_utf8(line); docstring const word = from_utf8(line);
insert(word); insert(word);
} }
@ -86,8 +86,6 @@ void PersonalWordList::save()
docstring_list::const_iterator et = words_.end(); docstring_list::const_iterator et = words_.end();
ofs << header() << "\n"; ofs << header() << "\n";
ofs << "# encoding: utf-8\n";
ofs << "# one word per line\n";
for (; it != et; ++it) { for (; it != et; ++it) {
ofs << to_utf8(*it) << "\n"; ofs << to_utf8(*it) << "\n";
} }