Skip to content

Instantly share code, notes, and snippets.

@fujii
Created February 20, 2018 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fujii/9aa8ebc99ab4662adaef567424ea3453 to your computer and use it in GitHub Desktop.
Save fujii/9aa8ebc99ab4662adaef567424ea3453 to your computer and use it in GitHub Desktop.
Patch for gtk-doc 1.25
--- gtkdoc-mkdb.orig 2017-05-02 05:45:20.000000000 -0700
+++ gtkdoc-mkdb 2018-02-19 23:55:07.865360274 -0800
@@ -3809,7 +3809,10 @@
}
}
- my $pad1 = " " x (24 - length ($name));
+ my $pad1 = "";
+ if (length ($name) < 24) {
+ my $pad1 = " " x (24 - length ($name));
+ }
my $arg_synop = "<row><entry role=\"property_type\">$type_output</entry><entry role=\"property_name\"><link linkend=\"$id\">$name</link></entry><entry role=\"property_flags\">$flags_string</entry></row>\n";
my $arg_desc = "<refsect2 id=\"$id\" role=\"property\"><title>The <literal>“$name”</literal> $kind</title>\n";
--- gtkdoc-scan.orig 2017-05-02 05:45:20.000000000 -0700
+++ gtkdoc-scan 2018-02-19 23:51:15.837351556 -0800
@@ -732,7 +732,7 @@
# Remove all nested pairs of curly braces.
while ($_ =~ s/{[^{]*}//g) { }
# Then hope at most one remains in the line...
- if (m%(.*?){%) {
+ if (m%(.*?)\{%) {
if ($skip_block == 1) {
$decl .= $1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment