[gimp] devel-docs: fix again
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] devel-docs: fix again
- Date: Sat, 14 May 2022 16:52:25 +0000 (UTC)
commit 6f14db9ea248f2568f1f72290ad11c82840cbd6c
Author: Jehan <jehan girinstud io>
Date: Sat May 14 18:47:53 2022 +0200
devel-docs: fix again
This will work around such errors from the g-ir-doc build:
> devel-docs/g-ir-docs/pages/python/Gimp-3.0/Gimp.checks_get_colors.page:46: parser error : EntityRef:
expecting ';'
> gimp_checks_get_colors (gimp_check_type (), &color1, &color2);
> ^
Similar to commit 7123b6c466, it cannot really be considered a proper
fix, barely a workaround for g-ir-doc-tool not even able to produce
valid XML. Here we have ampersands which it should have espaced into XML
entities.
Anyway this will do for now (until we just decide to drop the g-ir-docs
tools?).
devel-docs/g-ir-docs/docs_pages_fix.sh | 3 ++-
devel-docs/g-ir-docs/meson.build | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/devel-docs/g-ir-docs/docs_pages_fix.sh b/devel-docs/g-ir-docs/docs_pages_fix.sh
index 422138e9d6..6fe72df25e 100755
--- a/devel-docs/g-ir-docs/docs_pages_fix.sh
+++ b/devel-docs/g-ir-docs/docs_pages_fix.sh
@@ -1,3 +1,4 @@
#!/bin/sh
-sed -i 's/<\(Prefix\|Image\)/\<\1/g' "$1"
+sed -i 's/<\(Prefix\|Image\)/\<\1/g' "$@"
+sed -i 's/&\([a-z0-9_]\+[^a-z0-9_;]\)/\&\1/g' "$@"
diff --git a/devel-docs/g-ir-docs/meson.build b/devel-docs/g-ir-docs/meson.build
index 552f7536ab..25fb73f0bd 100644
--- a/devel-docs/g-ir-docs/meson.build
+++ b/devel-docs/g-ir-docs/meson.build
@@ -60,6 +60,7 @@ foreach lang : [ 'python', 'gjs' ]
command: [
docs_pages_fix_sh,
'@OUTDIR@' + '/pages/' + lang + '/Gimp-' + gimp_api_version + '/Gimp.Procedure.add_menu_path.page',
+ '@OUTDIR@' + '/pages/' + lang + '/Gimp-' + gimp_api_version + '/Gimp.checks_get_colors.page',
],
build_by_default: true)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]