Fix indentation in XLSX file

I'm not sure why we didn't detect it before; either Hound does not iden-
tify the file as a Ruby file, or an older version of Rubocop didn't.
This commit is contained in:
Javi Martín
2020-09-29 18:06:16 +02:00
parent ec0e9052ab
commit 6a1b12db4c

View File

@@ -1,8 +1,7 @@
xlsx_package.workbook.add_worksheet(name: "Summary") do |sheet| xlsx_package.workbook.add_worksheet(name: "Summary") do |sheet|
styles = xlsx_package.workbook.styles
styles = xlsx_package.workbook.styles title = styles.add_style(b: true)
title = styles.add_style(b:true) link = styles.add_style(fg_color: "0000FF", u: true)
link = styles.add_style(fg_color: "0000FF", u: true)
if @process.debate_phase.enabled? && @process.questions.any? if @process.debate_phase.enabled? && @process.questions.any?
sheet.add_row [t("legislation.summary.debate_phase"), t("legislation.summary.debates", count: @process.questions.count)], style: title sheet.add_row [t("legislation.summary.debate_phase"), t("legislation.summary.debates", count: @process.questions.count)], style: title