Changeset View
Changeset View
Standalone View
Standalone View
language/backgroundparser/parsejob.cpp
Context not available. | |||||
314 | } | 314 | } | ||
---|---|---|---|---|---|
315 | 315 | | |||
316 | d->contents.contents = file.readAll(); ///@todo Convert from local encoding to utf-8 if they don't match | 316 | d->contents.contents = file.readAll(); ///@todo Convert from local encoding to utf-8 if they don't match | ||
317 | // Normalize line endings. This is consistent with KTextEditor::Document::text(). | ||||
318 | d->contents.contents.replace("\r\n", "\n"); | ||||
319 | d->contents.contents.replace('\r', '\n'); | ||||
317 | d->contents.modification = KDevelop::ModificationRevision(lastModified); | 320 | d->contents.modification = KDevelop::ModificationRevision(lastModified); | ||
318 | 321 | | |||
319 | file.close(); | 322 | file.close(); | ||
Context not available. |