[Kbabel] [PATCH] Gettext save: be sure that comment lines start with #
Nicolas Goutte
nicolasg at snafu.de
Fri Oct 28 20:33:06 CEST 2005
On Friday 28 October 2005 20:19, Chusslove Illich wrote:
> > [: Nicolas Goutte :]
> > The change makes sure that, while saving Gettext, each comment line
> > starts with a #, even if the user has not taken care about it.
>
> Good catch. Just a small change to the patch might be in order: if the user
> just puts few leading spaces in front of the hash, thus not breaking the
> PO format (as per msgfmt being silent), the patch should not add a hash.
> I'd strip the leading spaces, and then check for a hash...
Good, then I will commit this first and think about how supporting leading
white space (as tabulators are probably allowed too).
Have a nice day!
More information about the kbabel
mailing list