[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug in polnish epilog script



Hi.

The epilog script for the polnish pages does something
like s/,,/&#8223/

The problem is that ,, can be a valid part of an URL (see
News/weekly/26/ for an example)

I propose the following patch:
Index: znaczki.sh
===================================================================
RCS file: /cvs/webwml/webwml/polish/znaczki.sh,v
retrieving revision 1.1
diff -u -r1.1 znaczki.sh
--- znaczki.sh  13 Jul 2003 12:54:29 -0000      1.1
+++ znaczki.sh  27 Jul 2003 15:18:46 -0000
@@ -1,3 +1,3 @@
 #!/bin/sh
-sed -e "s/,,/\„/g; s/''/\”/g;" $1 > temp
+perl -p -e "s/(^|\s),,/\„/g; s/''/\”/g;" $1 > temp
 mv temp $1

I replaced sed with perl because I don't know how to write this
regex in sed :)

Gruesse,
-- 
*** Frank Lichtenheld <frank@lichtenheld.de> ***
          *** http://www.djpig.de/ ***
see also: - http://www.usta.de/
          - http://fachschaft.physik.uni-karlsruhe.de/



Reply to: