]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
scripts/meson-html-gen.py: Don't rereformat output files
authorPeter Krempa <pkrempa@redhat.com>
Tue, 13 Oct 2020 14:47:48 +0000 (16:47 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 19 Oct 2020 10:40:50 +0000 (12:40 +0200)
The output HTML files (especially those generated from rST files) don't
look good even after reformatting. Skip the extra step and accept that
no matter what we do HTMLs will not look great.

This additionally makes it way simpler to remove meson-html-gen.py in
the future (thus I've neglected to remove passing of xmllint).

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
scripts/meson-html-gen.py

index 2731d734a7d55614ac355360a13ac7a2acb94fbd..dcc11f37cfdacd904399947841a6961fa20e7728 100755 (executable)
@@ -14,7 +14,7 @@ parser.add_argument("htmlfile", type=str, help="path to generated HTML file")
 parser.add_argument("pagesrc", type=str, default="", nargs='?', help="(optional) path to source file used for edit this page")
 args = parser.parse_args()
 
-html_tmp = subprocess.run(
+html = subprocess.run(
     [
         args.xsltproc,
         '--stringparam', 'pagesrc', args.pagesrc,
@@ -26,12 +26,5 @@ html_tmp = subprocess.run(
     stderr=subprocess.PIPE,
 )
 
-html = subprocess.run(
-    [args.xmllint, '--nonet', '--format', '-'],
-    input=html_tmp.stdout,
-    stdout=subprocess.PIPE,
-    stderr=subprocess.PIPE,
-)
-
 with open(args.htmlfile, 'wb') as outfile:
     outfile.write(html.stdout)