diff options
| author | Zsolt Kozaroczy <[email protected]> | 2023-05-05 11:42:56 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-05 11:42:56 +0200 |
| commit | 6fd844ebca61175f107ba3420453e8fe1a6f5046 (patch) | |
| tree | 7e5163de96da0e14eb8e958599f601bfb6ff22a9 /lib/axlsx/drawing/vml_shape.rb | |
| parent | fabe8cb2571c8865270247ca78ddc01d493a9ee1 (diff) | |
| parent | 3d10ac1e1b067de94e4344b25cbfeecd7bf4bdde (diff) | |
| download | caxlsx-6fd844ebca61175f107ba3420453e8fe1a6f5046.tar.gz caxlsx-6fd844ebca61175f107ba3420453e8fe1a6f5046.zip | |
Merge branch 'master' into frozenStrings
Diffstat (limited to 'lib/axlsx/drawing/vml_shape.rb')
| -rw-r--r-- | lib/axlsx/drawing/vml_shape.rb | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/lib/axlsx/drawing/vml_shape.rb b/lib/axlsx/drawing/vml_shape.rb index 5d225d2a..f1cd8951 100644 --- a/lib/axlsx/drawing/vml_shape.rb +++ b/lib/axlsx/drawing/vml_shape.rb @@ -38,28 +38,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 |
