Skip to content

Commit

Permalink
Merge branch 'hotfix/InternalLinkFindMethodFix'
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammetDilmac committed Jul 3, 2017
2 parents ebc9bce + 31d002d commit f87d5ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/Html2Docx/relation.rb
Expand Up @@ -43,7 +43,8 @@ def create_internal_link_start_tag(name, document)

def create_internal_link_end_tag(name, document)
bookmark_end_tag = Nokogiri::XML::Node.new('w:bookmarkEnd', document)
bookmark_end_tag['w:id'] = find_internal_link_id(name)
id, value = find_internal_link_id(name)
bookmark_end_tag['w:id'] = value

bookmark_end_tag
end
Expand All @@ -59,7 +60,7 @@ def create_internal_link_id(name)
end

def create_external_link_id(destination)
id = find_external_link_id(destination)
id, value = find_external_link_id(destination)

if id
id
Expand Down
2 changes: 1 addition & 1 deletion lib/Html2Docx/version.rb
@@ -1,3 +1,3 @@
module Html2Docx
VERSION = '0.4.0'
VERSION = '0.4.1'
end

0 comments on commit f87d5ba

Please sign in to comment.