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



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to