Hello.

Received this from the Debian BTS:

---------- Forwarded message ----------
From: Hamish <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Date: Sun, 22 Jun 2008 23:39:09 +1200
Subject: Bug#487517: indent: [rfe] better support for gettext macros

Package: indent
Version: 2.2.9-7
Severity: wishlist
Tags: l10n

Hi,

At the GRASS GIS project (grass.osgeo.org) we are preparing to re-indent 
our c. 1M SLOC codebase. Trials have shown that indent sometimes does 
not do well with the _("") gettext macros used for i18n of messages.
For example,

indent produces:
 G_fatal_error
        (_
         ("Can't get projection info of current location

better would be to break lines like:
 G_fatal_error(
        _("Can't get projection info ....



CLI rules used:
$ indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \
    -nbbo -nbc -nbfda -nbfde -ncdb -ncdw -nce -nfca -npcs -nprs \
    -npsl -nsc -nsob -saf -sai -saw -sbi0 -ss -ts8 -ut main.c

Example code which upon indent'ing shows the behaviour:
  http://trac.osgeo.org/grass/browser/grass/trunk/raster/r.sun/main.c

refs:
  http://thread.gmane.org/gmane.comp.gis.grass.devel/26820/focus=27382
  http://trac.osgeo.org/grass/browser/grass/trunk/SUBMITTING#L229



thanks,
Hamish


_______________________________________________
bug-indent mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-indent

Reply via email to