On Tue, Aug 12, 2008 at 2:09 AM, Glynn Clements <[EMAIL PROTECTED]> wrote: > Markus Neteler wrote: ... >> I have added this gettext polishing trick to >> tools/grass_indent.sh > > However, this only catches some of the cases; there are also cases > where the underscore isn't preceded by a left parenthesis, e.g. the > ->description fields of parser options. > > A more general solution, is: > > find . -type f -name '*.c' | xargs grep -l '\<_$' | \ > while read file ; do sed -i -e '/[( \t]_$/{;N;s/\n[ \t]*//;}' $file ; > done > > [Almost the same as before, but with different regexps.] > > I have made this change to grass_indent.sh, and also committed the > fixed files.
Great. I have fixed 6.4.svn accordingly. Please all update... Markus (who wonders why we didn't invent tools/grass_indent.sh some years ago) _______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev