[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Demexp-dev] Hack for ocaml-gettext bug
From: |
David MENTRE |
Subject: |
[Demexp-dev] Hack for ocaml-gettext bug |
Date: |
Sun, 22 Jan 2006 20:57:41 +0100 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) |
Hello Sylvain,
For information, I'm using now the following Perl script as a hack
around ocaml-gettext multiple #: lines bug. It might be useful to other
of your ocaml-gettext users.
#!/usr/bin/perl
# A temporary fix for ocaml-gettext: remove multiple contiguous #: lines
$/ = '';
while ( <> ) {
$_ =~ s/\#:([^\n]+)\n\#:/\#:$1/g; # remove 2 consecutive #: lines
$_ =~ s/\#:([^\n]+)\n\#:/\#:$1/g; # remove 3 consecutive #: lines
$_ =~ s/\#:([^\n]+)\n\#:/\#:$1/g; # remove 4 consecutive #: lines
print $_;
}
Best wishes,
d.
--
pub 1024D/A3AD7A2A 2004-10-03 David MENTRE <address@hidden>
5996 CC46 4612 9CA4 3562 D7AC 6C67 9E96 A3AD 7A2A
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Demexp-dev] Hack for ocaml-gettext bug,
David MENTRE <=