From 893329575efe4a3da451bf278c689607f6862221 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Thu, 19 Oct 2023 09:31:25 -0400 Subject: [PATCH] Fix: add special character substitution to blocks with ampersands While there was no problem rendering HTML (using `make`), rendering docbook/XML failed, eg: Error: Cannot parse the DocBook XML file: xmlParseEntityRef: no name, line 814, column 40 (lttng-docs-2.13m39rfphx.xml, line 814) Snippet of the failed section: ``` $ cd $(mktemp -d) && wget http://lttng.org/files/lttng-modules/lttng-modules-latest-2.13.tar.bz2 && tar -xf lttng-modules-latest-2.13.tar.bz2 && cd lttng-modules-2.13.* && make && sudo make modules_install && sudo depmod -a ``` The `tools/check.py` also fails without this modification. Change-Id: I950fc010f05e8c3a3a1c8fecd963c23c62f19dc7 Signed-off-by: Kienan Stewart --- 2.13/lttng-docs-2.13.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2.13/lttng-docs-2.13.txt b/2.13/lttng-docs-2.13.txt index 530f1cf..ec6c700 100644 --- a/2.13/lttng-docs-2.13.txt +++ b/2.13/lttng-docs-2.13.txt @@ -575,7 +575,7 @@ Fedora{nbsp}39: . Download, build, and install the latest LTTng-modules{nbsp}{revision}: + -- -[role="term",subs="attributes"] +[role="term",subs="attributes,specialcharacters"] ---- $ cd $(mktemp -d) && wget http://lttng.org/files/lttng-modules/lttng-modules-latest-{revision}.tar.bz2 && @@ -656,7 +656,7 @@ Alpine Linux{nbsp}3.16, Alpine Linux{nbsp}3.17, or Alpine Linux{nbsp}3.18: . Download, build, and install the latest LTTng-modules{nbsp}{revision}: + -- -[role="term",subs="attributes"] +[role="term",subs="attributes,specialcharacters"] ---- $ cd $(mktemp -d) && wget http://lttng.org/files/lttng-modules/lttng-modules-latest-{revision}.tar.bz2 && -- 2.34.1