summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun McCance <shaunm@redhat.com>2022-10-12 10:30:30 -0400
committerShaun McCance <shaunm@redhat.com>2022-10-12 10:30:30 -0400
commit4f3984b6abe090f25fd302fbfceca3b04d6df165 (patch)
tree0166587a62b59f4ec5c4cac0d606728ca341a675
parent73b668ead2b7e915568fd4517dc25cf2dcd9fe43 (diff)
downloadyelp-tools-4f3984b6abe090f25fd302fbfceca3b04d6df165.tar.gz
Ensure trailing slash on output dir for DocBook
xsltproc is picky. We already do this for Mallard, but missed it for DocBook. https://gitlab.gnome.org/GNOME/yelp-tools/-/issues/22
-rwxr-xr-xtools/yelp-build.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/yelp-build.in b/tools/yelp-build.in
index 438f082..966c623 100755
--- a/tools/yelp-build.in
+++ b/tools/yelp-build.in
@@ -557,6 +557,9 @@ class XhtmlBuilder (Builder):
if not os.path.isdir(output):
print('Output must be a directory', file=sys.stderr)
return 1
+ if not output.endswith('/'):
+ # xsltproc is picky about this
+ output = output + '/'
if path is None:
path = self.get_option_list('path')
if path is None: