From e988b96eceafd1619d2f8c51c94e38523a051f54 Mon Sep 17 00:00:00 2001 From: David Steele Date: Sat, 18 Jun 2016 09:22:26 -0400 Subject: [PATCH] Fixed issue in doc info output with --require. Section names were being repeated in the info output when multiple --require options depended on the same sections. --- doc/lib/BackRestDoc/Common/DocRender.pm | 7 +++++-- doc/xml/release.xml | 4 ++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/doc/lib/BackRestDoc/Common/DocRender.pm b/doc/lib/BackRestDoc/Common/DocRender.pm index c193ef6b1..b5b98b770 100644 --- a/doc/lib/BackRestDoc/Common/DocRender.pm +++ b/doc/lib/BackRestDoc/Common/DocRender.pm @@ -362,9 +362,12 @@ sub required { if ($strChildPath =~ /^$strPath$/ || $strChildPath =~ /^$strPath\/.*$/) { - &log(INFO, " require section: ${strChildPath}"); + if (!defined(${$self->{oSectionRequired}}{$strChildPath})) + { + &log(INFO, " require section: ${strChildPath}"); - ${$self->{oSectionRequired}}{$strChildPath} = true; + ${$self->{oSectionRequired}}{$strChildPath} = true; + } } } } diff --git a/doc/xml/release.xml b/doc/xml/release.xml index 31aac8d6e..da8543ae0 100644 --- a/doc/xml/release.xml +++ b/doc/xml/release.xml @@ -108,6 +108,10 @@

Fixed -specific xml that was loaded for non- projects.

+ + +

Fixed section names being repeated in the info output when multiple --require options depended on the same sections.

+