summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/stylesheet/styles.rb
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-04-05 17:17:07 +0200
committerGeremia Taglialatela <[email protected]>2023-04-06 09:54:44 +0200
commit7e90a46d43fefcf5ff7c76c14b29b6998245cfc5 (patch)
tree0562b39547ee41e86504bf661390ce0d571ff066 /lib/axlsx/stylesheet/styles.rb
parente9496a58dbf17d4b9bb615f3cb630f1e32574ece (diff)
downloadcaxlsx-7e90a46d43fefcf5ff7c76c14b29b6998245cfc5.tar.gz
caxlsx-7e90a46d43fefcf5ff7c76c14b29b6998245cfc5.zip
Remove Layout/TrailingWhitespace offenses
``` rubocop --only Layout/TrailingWhitespace -a ```
Diffstat (limited to 'lib/axlsx/stylesheet/styles.rb')
-rw-r--r--lib/axlsx/stylesheet/styles.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/axlsx/stylesheet/styles.rb b/lib/axlsx/stylesheet/styles.rb
index f6305fa9..188f0960 100644
--- a/lib/axlsx/stylesheet/styles.rb
+++ b/lib/axlsx/stylesheet/styles.rb
@@ -137,7 +137,7 @@ module Axlsx
# @option options [Integer] family The font family to use.
# @option options [String] font_name The name of the font to use
# @option options [Integer] num_fmt The number format to apply
- # @option options [String] format_code The formatting to apply.
+ # @option options [String] format_code The formatting to apply.
# @option options [Integer|Hash] border The border style to use.
# borders support style, color and edges options @see parse_border_options
# @option options [String] bg_color The background color to apply to the cell
@@ -241,8 +241,8 @@ module Axlsx
if options[:type] == :xf
# Check to see if style in cache already
-
- font_defaults = {name: @fonts.first.name, sz: @fonts.first.sz, family: @fonts.first.family}
+
+ font_defaults = {name: @fonts.first.name, sz: @fonts.first.sz, family: @fonts.first.family}
raw_style = {type: :xf}.merge(font_defaults).merge(options)
@@ -349,12 +349,12 @@ module Axlsx
# parses Style#add_style options for borders.
# @note noop if :border is not specified in options
- # @option options [Hash|Integer] A border style definition hash or the index of an existing border.
- # Border style definition hashes must include :style and :color key-value entries and
- # may include an :edges entry that references an array of symbols identifying which border edges
+ # @option options [Hash|Integer] A border style definition hash or the index of an existing border.
+ # Border style definition hashes must include :style and :color key-value entries and
+ # may include an :edges entry that references an array of symbols identifying which border edges
# you wish to apply the style or any other valid Border initializer options.
# If the :edges entity is not provided the style is applied to all edges of cells that reference this style.
- # Also available :border_top, :border_right, :border_bottom and :border_left options with :style and/or :color
+ # Also available :border_top, :border_right, :border_bottom and :border_left options with :style and/or :color
# key-value entries, which override :border values.
# @example
# #apply a thick red border to the top and bottom
@@ -444,8 +444,8 @@ module Axlsx
end
border.prs << BorderPr.new({
- :name => edge,
- :style => edge_b_opts[:style],
+ :name => edge,
+ :style => edge_b_opts[:style],
:color => Color.new(:rgb => edge_b_opts[:color]) },
)
end