s4-ldb: allow for unescaped '=' in a index DN
[Samba/cd1.git] / docs-xml / scripts / neatquotes.pl
blob9d5aa6e9e36098b9a1cd53e72e19a9cd98dd34d8
1 #!/usr/bin/perl
3 my $inprog = 0;
5 while(<STDIN>) {
6 if(/<(programlisting|screen)>/) { $inprog = 1; }
7 if(/<\/(programlisting|screen)>/) { $inprog = 0; }
8 if(not /="(.*)"/ and not $inprog) {
9 s/"(.*?)"/<quote>\1<\/quote>/g;
11 print $_;