[Kbabel] [PATCH] Gettext save: be sure that comment lines start with #
Nicolas Goutte
nicolasg at snafu.de
Fri Oct 28 22:09:00 CEST 2005
On Friday 28 October 2005 20:33, Nicolas Goutte wrote:
> 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).
Well, as I have seen that empty lines should be cared too, I have not
committed it (even if probably it would have worked nevertheless).
>
> Have a nice day!
>
> _______________________________________________
> kbabel mailing list
> kbabel at kde.org
> https://mail.kde.org/mailman/listinfo/kbabel
More information about the kbabel
mailing list