From 78bfc602888816f73ede757af44935b6fc08fc89 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 1 May 2009 22:58:39 +0200 Subject: find_unused_doc: Strip spaces in configuration names, just like the parser does. --- docs-xml/scripts/find_missing_doc.pl | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'docs-xml/scripts') diff --git a/docs-xml/scripts/find_missing_doc.pl b/docs-xml/scripts/find_missing_doc.pl index 4379d3a476..3d0c345a5d 100755 --- a/docs-xml/scripts/find_missing_doc.pl +++ b/docs-xml/scripts/find_missing_doc.pl @@ -15,7 +15,9 @@ open(IN,"xsltproc --xinclude --param smb.context ALL generate-context.xsl parame while() { if( /) { next if $ln =~ m/.*P_SEPARATOR.*/; next unless $ln =~ /\s*\.label\s*=\s*\"(.*)\".*/; - if($doc{lc($1)}) { - $doc{lc($1)} = "FOUND"; + my $name = $1; + $name =~ s/ //g; + + if($doc{lc($name)}) { + $doc{lc($name)} = "FOUND"; } else { - print "'$1' is not documented\n"; + print "'$name' is not documented\n"; } } close SOURCE; -- cgit