From 8fe1f65374ef31becfa1e1a2250192c67631be9a Mon Sep 17 00:00:00 2001 From: Jehan Date: Sat, 14 Sep 2013 02:58:39 +1200 Subject: [PATCH] pdb: clean out \n from procedure descriptions in previous commit a7f1129. If we want better output for long description, this will have to be implemented in the pdbgen. --- app/pdb/channel-cmds.c | 6 +++--- libgimp/gimpchannel_pdb.c | 14 +++++++------- tools/pdbgen/pdb/channel.pdb | 12 ++++++++---- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/app/pdb/channel-cmds.c b/app/pdb/channel-cmds.c index 7c98a1b606..cebc515937 100644 --- a/app/pdb/channel-cmds.c +++ b/app/pdb/channel-cmds.c @@ -370,7 +370,7 @@ register_channel_procs (GimpPDB *pdb) gimp_procedure_set_static_strings (procedure, "gimp-channel-new", "Create a new channel.", - "This procedure creates a new channel with the specified width, height, name, opacity and color. \n\nThe new channel still needs to be added to the image, as this is not automatic. Add the new channel with 'gimp-image-insert-channel'. Other attributes, such as channel visibility, should be set with explicit procedure calls. \nThe channel's contents are undefined initially.", + "This procedure creates a new channel with the specified width, height, name, opacity and color. The new channel still needs to be added to the image, as this is not automatic. Add the new channel with 'gimp-image-insert-channel'. Other attributes, such as channel visibility, should be set with explicit procedure calls. The channel's contents are undefined initially.", "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -431,7 +431,7 @@ register_channel_procs (GimpPDB *pdb) gimp_procedure_set_static_strings (procedure, "gimp-channel-new-from-component", "Create a new channel from a color component", - "This procedure creates a new channel from a color component. \n\nThe new channel still needs to be added to the image, as this is not automatic. Add the new channel with 'gimp-image-insert-channel'. Other attributes, such as channel visibility, should be set with explicit procedure calls.", + "This procedure creates a new channel from a color component. The new channel still needs to be added to the image, as this is not automatic. Add the new channel with 'gimp-image-insert-channel'. Other attributes, such as channel visibility, should be set with explicit procedure calls.", "Shlomi Fish ", "Shlomi Fish", "2005", @@ -474,7 +474,7 @@ register_channel_procs (GimpPDB *pdb) gimp_procedure_set_static_strings (procedure, "gimp-channel-copy", "Copy a channel.", - "This procedure copies the specified channel and returns the copy. \n\nThe new channel still needs to be added to the image, as this is not automatic. Add the new channel with 'gimp-image-insert-channel'.", + "This procedure copies the specified channel and returns the copy. The new channel still needs to be added to the image, as this is not automatic. Add the new channel with 'gimp-image-insert-channel'.", "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/libgimp/gimpchannel_pdb.c b/libgimp/gimpchannel_pdb.c index d432692dd4..8530e90b4d 100644 --- a/libgimp/gimpchannel_pdb.c +++ b/libgimp/gimpchannel_pdb.c @@ -46,10 +46,10 @@ * Create a new channel. * * This procedure creates a new channel with the specified width, - * height, name, opacity and color. \n\nThe new channel still needs to - * be added to the image, as this is not automatic. Add the new channel + * height, name, opacity and color. The new channel still needs to be + * added to the image, as this is not automatic. Add the new channel * with gimp_image_insert_channel(). Other attributes, such as channel - * visibility, should be set with explicit procedure calls. \nThe + * visibility, should be set with explicit procedure calls. The * channel's contents are undefined initially. * * Returns: The newly created channel. @@ -92,8 +92,8 @@ _gimp_channel_new (gint32 image_ID, * * Create a new channel from a color component * - * This procedure creates a new channel from a color component. \n\nThe - * new channel still needs to be added to the image, as this is not + * This procedure creates a new channel from a color component. The new + * channel still needs to be added to the image, as this is not * automatic. Add the new channel with gimp_image_insert_channel(). * Other attributes, such as channel visibility, should be set with * explicit procedure calls. @@ -133,8 +133,8 @@ gimp_channel_new_from_component (gint32 image_ID, * Copy a channel. * * This procedure copies the specified channel and returns the copy. - * \n\nThe new channel still needs to be added to the image, as this is - * not automatic. Add the new channel with gimp_image_insert_channel(). + * The new channel still needs to be added to the image, as this is not + * automatic. Add the new channel with gimp_image_insert_channel(). * * Returns: The newly copied channel. **/ diff --git a/tools/pdbgen/pdb/channel.pdb b/tools/pdbgen/pdb/channel.pdb index 0a3bf03d4f..a8bc1785e9 100644 --- a/tools/pdbgen/pdb/channel.pdb +++ b/tools/pdbgen/pdb/channel.pdb @@ -22,11 +22,13 @@ sub channel_new { $help = <<'HELP'; This procedure creates a new channel with the specified width, height, name, opacity and color. -\n\nThe new channel still needs to be added to the image, as this is not + +The new channel still needs to be added to the image, as this is not automatic. Add the new channel with gimp_image_insert_channel(). Other attributes, such as channel visibility, should be set with explicit procedure calls. -\nThe channel's contents are undefined initially. + +The channel's contents are undefined initially. HELP &std_pdb_misc; @@ -72,7 +74,8 @@ sub channel_copy { $help = <<'HELP'; This procedure copies the specified channel and returns the copy. -\n\nThe new channel still needs to be added to the image, as this is not + +The new channel still needs to be added to the image, as this is not automatic. Add the new channel with gimp_image_insert_channel(). HELP @@ -142,7 +145,8 @@ sub channel_new_from_component { $help = <<'HELP'; This procedure creates a new channel from a color component. -\n\nThe new channel still needs to be added to the image, as this is not + +The new channel still needs to be added to the image, as this is not automatic. Add the new channel with gimp_image_insert_channel(). Other attributes, such as channel visibility, should be set with explicit procedure calls.