groff doesn't like lines to start with a single quote, we better escape

2004-11-11  Sven Neumann  <sven@gimp.org>

	* app/config/gimpconfig-dump.c: groff doesn't like lines to start
	with a single quote, we better escape it. Fixes bug #157971.

	* docs/gimprc.5.in: regenerated.
This commit is contained in:
Sven Neumann 2004-11-11 17:07:58 +00:00 committed by Sven Neumann
parent f6e5ecb2e0
commit c8abfaf18b
3 changed files with 16 additions and 5 deletions

View File

@ -1,3 +1,10 @@
2004-11-11 Sven Neumann <sven@gimp.org>
* app/config/gimpconfig-dump.c: groff doesn't like lines to start
with a single quote, we better escape it. Fixes bug #157971.
* docs/gimprc.5.in: regenerated.
2004-11-11 Michael Natterer <mitch@gimp.org>
* app/core/gimp-edit.c

View File

@ -487,13 +487,17 @@ static void
dump_with_linebreaks (gint fd,
const gchar *text)
{
const gchar *t;
gint i, len, space;
len = strlen (text);
gint len = strlen (text);
while (len > 0)
{
const gchar *t;
gint i, space;
/* groff doesn't like lines to start with a single quote */
if (*text == '\'')
write (fd, "\\", 1);
for (t = text, i = 0, space = 0;
*t != '\n' && (i <= LINE_LENGTH || space == 0) && i < len;
t++, i++)

View File

@ -258,7 +258,7 @@ value.
Sets an upper limit to the memory that is used per image to keep operations on
the undo stack. Regardless of this setting, at least as many undo-levels as
configured can be undone. The integer size can contain a suffix of 'B', 'K',
'M' or 'G' which makes GIMP interpret the size as being specified in bytes,
\'M' or 'G' which makes GIMP interpret the size as being specified in bytes,
kilobytes, megabytes or gigabytes. If no suffix is specified the size defaults
to being specified in kilobytes.