pdbgen: fix trailing whitespaces in generated C doc in empty lines.

This commit is contained in:
Jehan 2013-10-05 19:48:39 +13:00
parent 1f21a28770
commit 008a40b877
3 changed files with 8 additions and 4 deletions

View File

@ -122,7 +122,7 @@ gimp_image_list (gint *num_images)
* as an argument will fail. Layers can be created using the
* gimp_layer_new() commands. They can be added to an image using the
* gimp_image_insert_layer() command.
*
*
* If your image's type if INDEXED, a colormap must also be added with
* gimp_image_set_colormap(). An indexed image without a colormap will
* output unexpected colors.

View File

@ -559,10 +559,10 @@ gimp_layer_set_offsets (gint32 layer_ID,
* - the current selection;
* - a grayscale copy of the layer;
* - or a copy of the active channel.
*
*
* The layer mask still needs to be added to the layer. This can be
* done with a call to gimp_layer_add_mask().
*
*
* gimp_layer_create_mask() will fail if there are no active channels
* on the image, when called with 'ADD-CHANNEL-MASK'. It will return a
* black mask when called with 'ADD-ALPHA-MASK' or

View File

@ -33,11 +33,15 @@ use Text::Wrap qw(wrap);
sub desc_wrap {
my ($str) = @_;
my $leading = ' * ';
my $wrapped;
$str =~ s/&/&amp\;/g;
$str =~ s/\</&lt\;/g;
$str =~ s/\>/&gt\;/g;
$Text::Wrap::columns = 72;
wrap($leading, $leading, $str);
$wrapped = wrap($leading, $leading, $str);
$wrapped =~ s/[ \t]+\n/\n/g;
return $wrapped;
}
sub generate {