summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/drawing/vml_shape.rb
diff options
context:
space:
mode:
authorZsolt Kozaroczy <[email protected]>2023-05-05 10:56:38 +0200
committerGitHub <[email protected]>2023-05-05 10:56:38 +0200
commit3d10ac1e1b067de94e4344b25cbfeecd7bf4bdde (patch)
tree1ca1fdf62df564af81cb2e36009ce3a8b41c02aa /lib/axlsx/drawing/vml_shape.rb
parent086e78d0d1f0896b6ca5f48b4873e861212f94aa (diff)
parentf70c0d4c92f16eece847004ee3488dc15d23db98 (diff)
downloadcaxlsx-3d10ac1e1b067de94e4344b25cbfeecd7bf4bdde.tar.gz
caxlsx-3d10ac1e1b067de94e4344b25cbfeecd7bf4bdde.zip
Merge pull request #218 from tagliala/chore/rubocop-production-stage-ii
Fix Layout/HeredocIndentation offenses
Diffstat (limited to 'lib/axlsx/drawing/vml_shape.rb')
-rw-r--r--lib/axlsx/drawing/vml_shape.rb40
1 files changed, 20 insertions, 20 deletions
diff --git a/lib/axlsx/drawing/vml_shape.rb b/lib/axlsx/drawing/vml_shape.rb
index fd335d95..7f196974 100644
--- a/lib/axlsx/drawing/vml_shape.rb
+++ b/lib/axlsx/drawing/vml_shape.rb
@@ -36,28 +36,28 @@ module Axlsx
# @param [String] str
# @return [String]
def to_xml_string(str = '')
- str << <<SHAME_ON_YOU
+ str << <<~XML
-<v:shape id="#{@id}" type="#_x0000_t202" fillcolor="#ffffa1 [80]" o:insetmode="auto"
- style="visibility:#{@visible ? 'visible' : 'hidden'}">
- <v:fill color2="#ffffa1 [80]"/>
- <v:shadow on="t" obscured="t"/>
- <v:path o:connecttype="none"/>
- <v:textbox style='mso-fit-text-with-word-wrap:t'>
- <div style='text-align:left'></div>
- </v:textbox>
+ <v:shape id="#{@id}" type="#_x0000_t202" fillcolor="#ffffa1 [80]" o:insetmode="auto"
+ style="visibility:#{@visible ? 'visible' : 'hidden'}">
+ <v:fill color2="#ffffa1 [80]"/>
+ <v:shadow on="t" obscured="t"/>
+ <v:path o:connecttype="none"/>
+ <v:textbox style='mso-fit-text-with-word-wrap:t'>
+ <div style='text-align:left'></div>
+ </v:textbox>
- <x:ClientData ObjectType="Note">
- <x:MoveWithCells/>
- <x:SizeWithCells/>
- <x:Anchor>#{left_column}, #{left_offset}, #{top_row}, #{top_offset}, #{right_column}, #{right_offset}, #{bottom_row}, #{bottom_offset}</x:Anchor>
- <x:AutoFill>False</x:AutoFill>
- <x:Row>#{row}</x:Row>
- <x:Column>#{column}</x:Column>
- #{@visible ? '<x:Visible/>' : ''}
- </x:ClientData>
- </v:shape>
-SHAME_ON_YOU
+ <x:ClientData ObjectType="Note">
+ <x:MoveWithCells/>
+ <x:SizeWithCells/>
+ <x:Anchor>#{left_column}, #{left_offset}, #{top_row}, #{top_offset}, #{right_column}, #{right_offset}, #{bottom_row}, #{bottom_offset}</x:Anchor>
+ <x:AutoFill>False</x:AutoFill>
+ <x:Row>#{row}</x:Row>
+ <x:Column>#{column}</x:Column>
+ #{@visible ? '<x:Visible/>' : ''}
+ </x:ClientData>
+ </v:shape>
+ XML
end
end
end