From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 941A79316A for ; Tue, 3 Jan 2023 16:36:18 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 7DB85D155 for ; Tue, 3 Jan 2023 16:36:18 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Tue, 3 Jan 2023 16:36:17 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 8803E44FFC for ; Tue, 3 Jan 2023 16:36:17 +0100 (CET) Message-ID: <61b40856-60ea-f9b2-ba99-700e7ce1b899@proxmox.com> Date: Tue, 3 Jan 2023 16:36:16 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Thunderbird/109.0 Content-Language: en-GB To: Proxmox VE development discussion , Noel Ullreich References: <20230103133121.114234-1-n.ullreich@proxmox.com> <20230103133121.114234-2-n.ullreich@proxmox.com> From: Thomas Lamprecht In-Reply-To: <20230103133121.114234-2-n.ullreich@proxmox.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SPAM-LEVEL: Spam detection results: 0 AWL 1.540 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment NICE_REPLY_A -3.142 Looks like a legit reply (A) SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: Re: [pve-devel] [PATCH pve-docs 1/3] Fixed inline code breaking in pdf docs X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jan 2023 15:36:18 -0000 Am 03/01/2023 um 14:31 schrieb Noel Ullreich: > Had to overwrite the `texttt` command to allow breaks in long strings > with no space. Now the line can be broken on specific chars as well. > any context/reference where you pulled this from or how you came up with it? > Signed-off-by: Noel Ullreich > --- > asciidoc/dblatex-custom.sty | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/asciidoc/dblatex-custom.sty b/asciidoc/dblatex-custom.sty > index 6b2578c..02fbe16 100644 > --- a/asciidoc/dblatex-custom.sty > +++ b/asciidoc/dblatex-custom.sty > @@ -66,3 +66,16 @@ > \drawtitlepage > \pagebreak[4] > } > + > +% to correctly break inline code the texttt command needs to be renewed > +\DeclareRobustCommand{\texttt}[1]{ > + \begingroup% > + \ttfamily% > + % characters on which to break. `_` does not work > + \begingroup\lccode`~=`/\lowercase{\endgroup\def~}{/\discretionary{}{}{}}% > + \begingroup\lccode`~=`.\lowercase{\endgroup\def~}{.\discretionary{}{}{}}% > + \begingroup\lccode`~=`-\lowercase{\endgroup\def~}{-\discretionary{}{}{}}% > + \catcode`/=\active\catcode`.=\active\catcode`-=\active% > + \scantokens{#1\noexpand}% > + \endgroup% > +}