Skip to content

Commit

Permalink
fix TextBox style typo
Browse files Browse the repository at this point in the history
  • Loading branch information
matthijscox-asml committed Oct 14, 2024
1 parent cfd2d2f commit ffc9379
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PPTX"
uuid = "14a86994-10a4-4a7d-b9ad-ef6f3b1fac6a"
authors = ["Xander de Vries", "Matthijs Cox"]
version = "0.8.0"
version = "0.8.1"

[deps]
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
Expand Down
2 changes: 1 addition & 1 deletion src/TextBox.jl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ end
function text_style_xml(t::TextBody)
style = [Dict("lang" => "en-US")]
if t.style["bold"]
push!(stile, Dict("b" => "1"))
push!(style, Dict("b" => "1"))
end

if t.style["italic"]
Expand Down
3 changes: 2 additions & 1 deletion test/testSlideXML.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ end
slide = Slide(;layout=2, title="my title")
text_box = TextBox(content="bla")
push!(slide, text_box)
text_box = TextBox(content="bla2")
# testing all properties of the TextBox
text_box = TextBox(content="content", offset_x=100, offset_y=140, style = Dict("bold" => true, "italic" => true))
push!(slide, text_box)
xml = PPTX.make_slide(slide)
doc = PPTX.xml_document(xml)
Expand Down

0 comments on commit ffc9379

Please sign in to comment.