pdb, libgimp: add proper support for multiline section comments

and move the "Gimp" section docs to the generated file.
This commit is contained in:
Michael Natterer 2019-07-31 12:16:38 +02:00
parent 076fc4ed23
commit cd1ba1cd17
4 changed files with 19 additions and 18 deletions

View File

@ -126,17 +126,6 @@
#include "libgimp-intl.h"
/**
* SECTION: gimp
* @title: Gimp
* @short_description: Main functions needed for building a GIMP plug-in.
* This header includes all other GIMP Library headers.
*
* Main functions needed for building a GIMP plug-in. This header
* includes all other GIMP Library headers.
**/
#define TILE_MAP_SIZE (_tile_width * _tile_height * 32)
#define ERRMSG_SHM_FAILED "Could not attach to gimp shared memory segment"

View File

@ -26,11 +26,15 @@
/**
* SECTION: gimp
* @title: gimp
* @short_description: Miscellaneous procedures
* SECTION: Gimp
* @title: Gimp
* @short_description: Main functions needed for building a GIMP plug-in.
*
* Miscellaneous procedures not fitting in any category.
* Main functions needed for building a GIMP plug-in.
* This header includes all other GIMP Library headers.
*
* Also contains some miscellaneous procedures that don't fit in any
* other category.
**/

View File

@ -237,8 +237,15 @@ CODE
%exports = (app => [@procs], lib => [@procs[0..1,3..7]]);
$desc = 'Miscellaneous';
$doc_title = 'gimp';
$doc_short_desc = 'Miscellaneous procedures';
$doc_long_desc = 'Miscellaneous procedures not fitting in any category.';
$doc_title = 'Gimp';
$doc_short_desc = 'Main functions needed for building a GIMP plug-in.';
$doc_long_desc = <<'DESC';
Main functions needed for building a GIMP plug-in.
This header includes all other GIMP Library headers.
Also contains some miscellaneous procedures that don't fit in any
other category.
DESC
1;

View File

@ -35,6 +35,7 @@ sub desc_wrap {
my $leading = ' * ';
my $wrapped;
$str =~ s/\s+$//; # trim trailing whitespace
$str =~ s/&/&amp\;/g;
$str =~ s/\</&lt\;/g;
$str =~ s/\>/&gt\;/g;