1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00
samba-mirror/docs-xml/scripts/neatquotes.pl
Gerald W. Carter 8f8a9f0190 Moving docs tree to docs-xml to make room for generated docs in the release tarball.
(This used to be commit 9f672c26d63955f613088489c6efbdc08b5b2d14)
2008-04-23 08:47:48 -05:00

13 lines
240 B
Perl
Executable File

#!/usr/bin/perl
my $inprog = 0;
while(<STDIN>) {
if(/<(programlisting|screen)>/) { $inprog = 1; }
if(/<\/(programlisting|screen)>/) { $inprog = 0; }
if(not /="(.*)"/ and not $inprog) {
s/"(.*?)"/<quote>\1<\/quote>/g;
}
print $_;
}