Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tallty_import_export
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
tallty_import_export
Commits
5fdd5d97
Commit
5fdd5d97
authored
Sep 20, 2021
by
liyijie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adjust line height of export xlsx
parent
bc77df7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
export.rb
lib/tallty_import_export/export.rb
+3
-3
No files found.
lib/tallty_import_export/export.rb
View file @
5fdd5d97
...
@@ -80,10 +80,10 @@ module TalltyImportExport
...
@@ -80,10 +80,10 @@ module TalltyImportExport
if
respond_to?
(
:first_header
)
if
respond_to?
(
:first_header
)
row_index
=
Axlsx
.
col_ref
(
headers
.
size
-
1
)
row_index
=
Axlsx
.
col_ref
(
headers
.
size
-
1
)
sheet
.
merge_cells
(
"A1:
#{
row_index
}
1"
)
sheet
.
merge_cells
(
"A1:
#{
row_index
}
1"
)
sheet
.
add_row
[
first_header
],
style:
title1
,
height:
4
0
sheet
.
add_row
[
first_header
],
style:
title1
,
height:
3
0
end
end
sheet
.
add_row
headers
.
map
{
|
header
|
header
[
:name
]},
style:
title2
,
height:
39
sheet
.
add_row
headers
.
map
{
|
header
|
header
[
:name
]},
style:
title2
,
height:
25
last_row
=
nil
last_row
=
nil
merge_column_hash
=
{}
merge_column_hash
=
{}
...
@@ -126,7 +126,7 @@ module TalltyImportExport
...
@@ -126,7 +126,7 @@ module TalltyImportExport
def
process_options
options
=
{}
def
process_options
options
=
{}
options
=
options
.
with_indifferent_access
options
=
options
.
with_indifferent_access
@row_height
||=
options
.
delete
(
:row_height
)
||
3
5
@row_height
||=
options
.
delete
(
:row_height
)
||
2
5
@width
||=
(
options
.
delete
(
:width
)
||
20
).
to_f
@width
||=
(
options
.
delete
(
:width
)
||
20
).
to_f
@filename
||=
options
.
delete
(
:filename
)
@filename
||=
options
.
delete
(
:filename
)
@group_by
||=
options
.
delete
(
:group_by
)
@group_by
||=
options
.
delete
(
:group_by
)
...
...
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