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:
parent
06a74992ef
commit
880e8b0bdc
@ -67,8 +67,11 @@ namespace zaaReloaded2.Importer.ZaaImporter
|
|||||||
/// <param name="text">ZAA-formatted Lauris output to import.</param>
|
/// <param name="text">ZAA-formatted Lauris output to import.</param>
|
||||||
public void Import(string text)
|
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(
|
string[] paragraphs = text.Split(
|
||||||
new string[] { Environment.NewLine },
|
new string[] { "\r\n", "\n\r", "\r", "\n" },
|
||||||
StringSplitOptions.RemoveEmptyEntries);
|
StringSplitOptions.RemoveEmptyEntries);
|
||||||
LaurisTimePoint timePoint = null;
|
LaurisTimePoint timePoint = null;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user