Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/Rules
diff options
context:
space:
mode:
Diffstat (limited to 'Rules')
-rw-r--r--Rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rules b/Rules
index add701a8..4cd78c89 100644
--- a/Rules
+++ b/Rules
@@ -6,7 +6,7 @@ preprocess do
begin
title = item.raw_content.match(/^[#] .*$/s).to_s
title.gsub!('# ', '')
- item[:title] = title
+ item[:title] = title unless title.empty?
# Encoding errors happen on some files for some reason, so we
# rescue them.
rescue Encoding::CompatibilityError