Skip to content

Commit

Permalink
Change import of multi-row cells
Browse files Browse the repository at this point in the history
new column on "\r\n" and "\n" instead of just "\r\n"
  • Loading branch information
Kirdock committed Aug 26, 2021
1 parent 7b731fe commit dd802dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DataTableConverter/Assisstant/ImportHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ private void LoadSheet(IExcelDataReader reader, string fileName, List<string> he
if (reader.GetColumnWidth(i) != 0 || Properties.Settings.Default.UnhideColumns)
{
string value = trimOperation(GetFormattedValue(reader, i)).Replace("\t", string.Empty);
string[] multiCells = value.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries);
string[] multiCells = value.Split(new string[] { "\r\n", "\n" }, StringSplitOptions.RemoveEmptyEntries);
if (multiCells.Length > 1)
{
for (int j = 0; j < multiCells.Length; ++j)
Expand Down
2 changes: 1 addition & 1 deletion DataTableConverter/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.9.0")]
[assembly: AssemblyFileVersion("1.0.10.0")]

0 comments on commit dd802dc

Please sign in to comment.