repo.or.cz
/
Samba
/
cd1.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
s4-ldb: allow for unescaped '=' in a index DN
[Samba/cd1.git]
/
docs-xml
/
scripts
/
neatquotes.pl
blob
9d5aa6e9e36098b9a1cd53e72e19a9cd98dd34d8
1
#!/usr/bin/perl
2
3
my
$inprog
=
0
;
4
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
;
10
}
11
print
$_
;
12
}