Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Emmanuel QUEVILLON
BIGSdb
Commits
bb7f85d1
Commit
bb7f85d1
authored
Jan 27, 2015
by
Keith Jolley
Browse files
Remove newlines in fields when converting text to Excel.
parent
dbe1c5b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/BIGSdb/Utils.pm
View file @
bb7f85d1
...
...
@@ -346,6 +346,7 @@ sub text2excel {
my
%widths
;
while
(
my
$line
=
<
$text_fh
>
)
{
$line
=~
s/[\r\n]/ /g
;
my
$format
=
!
$options
->
{'
no_header
'}
&&
$row
==
0
?
$header_format
:
$cell_format
;
my
@values
=
split
/\t/
,
$line
;
foreach
my
$value
(
@values
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment