Skip to content

Commit

Permalink
Fix inextricably reversed title checking logic
Browse files Browse the repository at this point in the history
  • Loading branch information
nhr authored and Fryguy committed Apr 16, 2015
1 parent 74a7aa0 commit 76dae6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _builder_lib/docsitebuilder/helpers.rb
Expand Up @@ -621,7 +621,7 @@ def configure_and_generate_page options
# to read the full article title out of the file itself.
file_lines = topic_adoc.split("\n")
article_title = topic['Name']
if file_lines.length < 0
if file_lines.length > 0
article_title = file_lines[0].gsub(/^\=\s+/, '').gsub(/\s+$/, '').gsub(/\{product-title\}/, distro_config["name"]).gsub(/\{product-version\}/, branch_config["name"])
end

Expand Down

0 comments on commit 76dae6e

Please sign in to comment.