Skip to content

Commit 0ae9b16

Browse files
authored
Merge pull request #3321 from ControlSystemStudio/db_tabs
Databrowser export: Add tab to header
2 parents 18457db + 8b80aa1 commit 0ae9b16

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

app/databrowser/src/main/java/org/csstudio/trends/databrowser3/export/ExportJob.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2010-2018 Oak Ridge National Laboratory.
2+
* Copyright (c) 2010-2025 Oak Ridge National Laboratory.
33
* All rights reserved. This program and the accompanying materials
44
* are made available under the terms of the Eclipse Public License v1.0
55
* which accompanies this distribution, and is available at
@@ -87,7 +87,7 @@ public void run()
8787
}
8888
}
8989

90-
/** @param comment Comment prefix ('#' for most ASCII, '%' for Matlab, ...)
90+
/** @param comment Comment prefix ('#\t' for most ASCII, '%' for Matlab, ...)
9191
* @param model Model with data
9292
* @param start Start time
9393
* @param end End time

app/databrowser/src/main/java/org/csstudio/trends/databrowser3/export/PlainExportJob.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2010-2018 Oak Ridge National Laboratory.
2+
* Copyright (c) 2010-2025 Oak Ridge National Laboratory.
33
* All rights reserved. This program and the accompanying materials
44
* are made available under the terms of the Eclipse Public License v1.0
55
* which accompanies this distribution, and is available at
@@ -45,8 +45,10 @@ public PlainExportJob(final Model model,
4545
final String filename,
4646
final Consumer<Exception> error_handler,
4747
final boolean unixTimeStamp)
48-
{
49-
super("# ", model, start, end, source, optimize_parameter, filename, error_handler, unixTimeStamp);
48+
{ // MS Excel fails to recognize tab-separated data columns
49+
// unless the initial header rows also contain at least one tab per row,
50+
// so add that to comment
51+
super("#\t", model, start, end, source, optimize_parameter, filename, error_handler, unixTimeStamp);
5052
this.formatter = formatter;
5153
}
5254

0 commit comments

Comments
 (0)