Fix importing of actual Word text.

- FIX: Datenimport funktioniert jetzt auch mit Word-Text und nicht nur in den Tests.
This commit is contained in:
Daniel Kraus 2015-08-05 06:46:52 +02:00
parent 06a74992ef
commit 880e8b0bdc
1 changed files with 4 additions and 1 deletions

View File

@ -67,8 +67,11 @@ namespace zaaReloaded2.Importer.ZaaImporter
/// <param name="text">ZAA-formatted Lauris output to import.</param>
public void Import(string text)
{
// Split the text into parargraphs. This implementation relies on the fact
// that the order or splitting strings in C#'s String.Split() method is
// important; see http://stackoverflow.com/a/8664639/270712
string[] paragraphs = text.Split(
new string[] { Environment.NewLine },
new string[] { "\r\n", "\n\r", "\r", "\n" },
StringSplitOptions.RemoveEmptyEntries);
LaurisTimePoint timePoint = null;