summaryrefslogtreecommitdiff
path: root/build/preseed.pl
diff options
context:
space:
mode:
authorFrans Pop <elendil@planet.nl>2009-04-08 06:05:30 +0000
committerFrans Pop <elendil@planet.nl>2009-04-08 06:05:30 +0000
commit222059f1e2f9174fef962f84f530e8f9a5723c69 (patch)
treee3703fef118c927e51ee1a427a0640819b20527f /build/preseed.pl
parent58f1e1618d295d7a12c4d817e462a201b9d6fb83 (diff)
downloadinstallation-guide-222059f1e2f9174fef962f84f530e8f9a5723c69.zip
Really ignore text based on conditions in phrase tags
Diffstat (limited to 'build/preseed.pl')
-rwxr-xr-xbuild/preseed.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/preseed.pl b/build/preseed.pl
index a622c0ca4..3a92a383a 100755
--- a/build/preseed.pl
+++ b/build/preseed.pl
@@ -129,6 +129,7 @@ sub start_rtn {
# Execute when text is encountered
sub text_rtn {
my ($text) = @_;
+
if ( $settitle ) {
# Clean leading and trailing whitespace for titles
$text =~ s/^[[:space:]]*//;
@@ -138,7 +139,8 @@ sub text_rtn {
$tagstatus{$titletag}{'title'} = $text;
$settitle = 0;
}
- if ( $example{'print'} ) {
+
+ if ( $example{'print'} && ! exists $ignore{'tag'} ) {
# Print section headers
for ($s=1; $s<=3; $s++) {
my $sect="sect$s";