r22247 - gnucash/branches/2.4/doc - [22246][PATCH] Fix tip-of-the-day with gcc-4.7

Geert Janssens gjanssens at code.gnucash.org
Wed Jun 27 16:45:12 EDT 2012


Author: gjanssens
Date: 2012-06-27 16:45:12 -0400 (Wed, 27 Jun 2012)
New Revision: 22247
Trac: http://svn.gnucash.org/trac/changeset/22247

Modified:
   gnucash/branches/2.4/doc/Makefile.am
Log:
[22246][PATCH] Fix tip-of-the-day with gcc-4.7
When making the text file tips-of-the-day, GnuCash expects 'gcc -E' to
preserve at least one of the whitespace lines between entries. However, this
relies on behavior of 'gcc -E' that isn't actually part of the spec, and is
a historical accident. And it changed in gcc-4.7, such that all the
whitespace is removed.

Work around this by explicitly adding a newline in the sed expression.

Pre gcc-4.7 there will be two newlines between tips, but this has no impact
on the tip displaying code.

Patch by Bill Nottingham



More information about the gnucash-patches mailing list