correction lignes vides

pull/3/head
Nicolas Sanchez 2 months ago
parent f9cc0ecc60
commit 877fdf85ce

@ -52,7 +52,7 @@ pub struct Arguments {
pub replace_separator_by: Option<String>, pub replace_separator_by: Option<String>,
/// include hidden lines to output /// include hidden lines to output
#[arg(short, long, default_value_t=false)] #[arg(short, long, default_value_t=false)]
pub include_hidden_lines: bool, pub include_hidden_rows: bool,
/// If merged cells, fill horizontally, vertically, both, or none /// If merged cells, fill horizontally, vertically, both, or none
#[arg(short, long, default_value_t = FillMergedCells::None)] #[arg(short, long, default_value_t = FillMergedCells::None)]
pub fill_merged_cells: FillMergedCells, pub fill_merged_cells: FillMergedCells,

@ -67,7 +67,7 @@ pub fn xlsxtocsv(args: &Arguments) -> Result<(), Error> {
// for each row... // for each row...
for i in 1..=num_rows { for i in 1..=num_rows {
// Avoid hidden rows if asked for // Avoid hidden rows if asked for
if !args.include_hidden_lines { if !args.include_hidden_rows {
match sheet.get_row_dimension(&i) { match sheet.get_row_dimension(&i) {
Some(dim) => { Some(dim) => {
if *dim.get_hidden() { if *dim.get_hidden() {

Loading…
Cancel
Save