mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
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:
parent
6be43c24f4
commit
ef1561665c
@ -61,7 +61,7 @@ void PersonalWordList::load()
|
||||
if (line == header()) {
|
||||
while (ifs) {
|
||||
getline(ifs, line);
|
||||
if (!line.empty() && !line[0] == '#') {
|
||||
if (!line.empty()) {
|
||||
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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user