From nobody Mon Feb 9 01:48:32 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1602605916; cv=none; d=zohomail.com; s=zohoarc; b=J6a+iB3EFObTYI6L5uLdkYtl7lseGUES2aetnggFgXgClkz76lTIeLuZesLAPZVRp33wL686TrL51+yv+cUA0WbuOdioKoxRthMmYJHSr4ARWGWTktCkEZcb/PfQIuzjZp9ynlA5oEFFfWvLFhLDi30sfglLAyZeWNqJ+gRiZAw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602605916; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=cLF+PMR2lpWrAo5B5QekRaWYC6fyzpd6iYQQ0QzbAp8=; b=l8AHUTUlgufVmFM1V39MxdCmyrD3WVWDPDPoypywqVJvcwr8DyP0Qfk2RnrKjflgdmOP2vum3vdDi+zTqblC4U1NS2q3J2ltRwiYkvV8tBOCREjfND0cna2vvU6quJVyxsRl6FgC8MUXhBDW0uM4aCn4SJg04cVc8gbscpC+rZk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1602605916483496.4920287918385; Tue, 13 Oct 2020 09:18:36 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-538-224U4WJwOVucsYVNonNQlw-1; Tue, 13 Oct 2020 12:18:32 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 401511868410; Tue, 13 Oct 2020 16:18:25 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DCC1019C59; Tue, 13 Oct 2020 16:18:24 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 643AB181A050; Tue, 13 Oct 2020 16:18:23 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 09DGIL6u000869 for ; Tue, 13 Oct 2020 12:18:21 -0400 Received: by smtp.corp.redhat.com (Postfix) id 4B5405D9D3; Tue, 13 Oct 2020 16:18:21 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.55]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6AF4A5D9CD for ; Tue, 13 Oct 2020 16:18:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1602605914; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=cLF+PMR2lpWrAo5B5QekRaWYC6fyzpd6iYQQ0QzbAp8=; b=bcoIcbtGhQozKzECImok+Ii7pRPmhiLDKvrb2V7MyUU3UVoAy3P2codffKdJa1TqUeWTnv 4KP3sVUxWlGzeXTUO8aN+Za2+E3OLuATvM3ZSm1QrlzEJ4o5ZJMc8O3+l60Gk0L6x+3X2Z S9eQgmWrcHxDtUr5tTyL9ExA9v0JyVI= X-MC-Unique: 224U4WJwOVucsYVNonNQlw-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH v2 2/9] scripts/meson-html-gen.py: Don't rereformat output files Date: Tue, 13 Oct 2020 18:18:06 +0200 Message-Id: <06117ff0180251cc81e1473c2d450dcb83e96438.1602605642.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" 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 --- scripts/meson-html-gen.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/scripts/meson-html-gen.py b/scripts/meson-html-gen.py index 2731d734a7..dcc11f37cf 100755 --- a/scripts/meson-html-gen.py +++ b/scripts/meson-html-gen.py @@ -14,7 +14,7 @@ parser.add_argument("htmlfile", type=3Dstr, help=3D"path = to generated HTML file") parser.add_argument("pagesrc", type=3Dstr, default=3D"", nargs=3D'?', help= =3D"(optional) path to source file used for edit this page") args =3D parser.parse_args() -html_tmp =3D subprocess.run( +html =3D subprocess.run( [ args.xsltproc, '--stringparam', 'pagesrc', args.pagesrc, @@ -26,12 +26,5 @@ html_tmp =3D subprocess.run( stderr=3Dsubprocess.PIPE, ) -html =3D subprocess.run( - [args.xmllint, '--nonet', '--format', '-'], - input=3Dhtml_tmp.stdout, - stdout=3Dsubprocess.PIPE, - stderr=3Dsubprocess.PIPE, -) - with open(args.htmlfile, 'wb') as outfile: outfile.write(html.stdout) --=20 2.26.2