Skip to content

Commit dbac211

Browse files
author
miko53
committed
fix error on properties tag, now it returns the property of paragrah
1 parent 564a364 commit dbac211

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/docx/containers/container.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ module Container
77
# Relation methods
88
# TODO: Create a properties object, include Element
99
def properties
10-
@node.at_xpath("./#{@properties_tag}")
10+
@node.at_xpath("./w:#{@properties_tag}")
1111
end
1212

1313
# Erase text within an element
1414
def blank!
15-
@node.xpath(".//w:t").each {|t| t.content = '' }
15+
@node.xpath('.//w:t').each { |t| t.content = '' }
1616
end
1717

1818
def remove!

0 commit comments

Comments
 (0)