Skip to content

Commit

Permalink
Fix bug with some *.docx
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Feb 19, 2014
1 parent 3240ea7 commit ed84a02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ydocx/templates/fachinfo.rb
Expand Up @@ -105,7 +105,7 @@ def parse_heading(text, id)
return markup(:h2, text, {:id => id})
end
def parse_title(node, text)
if @indecies.empty? and !text.empty? and
if @indecies.empty? and !text.empty? and node.previous and
(node.previous.inner_text.strip.empty? or node.parent.previous.nil?)
# The first line as package name
title = (@lang == 'fr' ? 'Titre' : 'Titel')
Expand Down

0 comments on commit ed84a02

Please sign in to comment.