From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 0G/5IDWrHGd+ZwEAe85BDQ:P1 (envelope-from ) for ; Sat, 26 Oct 2024 08:41:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 0G/5IDWrHGd+ZwEAe85BDQ (envelope-from ) for ; Sat, 26 Oct 2024 10:41:25 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Q2UNV+GD; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1729932085; a=rsa-sha256; cv=none; b=Y2wiKoHXAzto1a6nWGrEBV5jfvtqkPMXNINBqMwha+NwqCP/MoLjycr7jBeU63sZ4NI1MV mIEhOron6OpzFxAc9H+D2Me9WKhAgcYhmjSOgi0oHpN+SiiV7HBDS+8b0/heVBoVqseHEY uO3PBnAh/WPwX4xi8lMIa2n4pdG0DNoN8sI/hyBTzATCUdP/ixUQ7gig7eVZqyMZfU5csc XRZvlmq3CfVx8pYjiZQ9uYuS16pOs00KxCJtC2R1RCybtR1D4oTj1h3wvE+NgkC9s0TCZ/ Uf/0T5+5fqHZ2cuBExtbUrHWwB22RT7aQyuaSd6mDKatkocvIJ8kjmttKXzvag== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Q2UNV+GD; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1729932085; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=0Exb67bmph4YbiFqi/C3VFQHh8rSP+mhETrMs9+3m+w=; b=OKPdNM3H2e6dTIqtiVSbjtyXG2f66SjBF0bFlR1VeMssGVQHY8awnC6+WbLG+rUj22+bCh DfYFvPEDvSzTk3QNa0AqLiTDcVanMWoilxl/bVjNJLw3yDQ3tyJDE5bGUjUjY2/ygBlvwB leVlcq7XXpi1NPn/EvEHjvx84TaQxk5s99yohX2hriDqCRdU2N7R2jhNZqmL/Jga4s+cxP mBtdCwBaCMmKcK8Q+yI0xQ6qBV1Daln1jsI/y80XR+mDR1AqqzHGVUZlpJgorMTUE2y1+H peHMSFvry+Wt2QZmlyQcDyBbmR4rMvVaNRg3u8gvyke7n5qy7i1XJnnvnH/Ukg== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3B0EB1D20B for ; Sat, 26 Oct 2024 10:41:25 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t4cLc-0001sW-GJ; Sat, 26 Oct 2024 04:40:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t4cLa-0001sF-N2 for emacs-orgmode@gnu.org; Sat, 26 Oct 2024 04:40:34 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t4cLY-0006rb-Mr for emacs-orgmode@gnu.org; Sat, 26 Oct 2024 04:40:34 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 3062F240103 for ; Sat, 26 Oct 2024 10:40:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1729932029; bh=ZxkO07wpRBK4mwDPgJrt9mLVQhRPmd1ovIDg21qUslQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=Q2UNV+GDiB6crc0kwFx44uULPSI+o4YPhsyKq9rGzRFXFsYvtPz8DyEnMHQvoCwz1 foXl5VGYABrEaa1Gd6FGXO1Jt9iRNeVfUwAHplvBTcAXmlnTJqptXraty09X9eI70U ph0ofQMC8MpNEXzMciKJexGOteT6hgIjT4tcr/vNPdbrcs6FMkTzz5wuEyY7qZkWgs o9PQtR8HvGDQdaJfZ0Uuc53U6rS9fBaedqZLRy0itydCglNhAM5qWziGfVHNfazmco A6/ZaAC8jx5L22shdzRhAZ7vqYhbNKE6osbSSlyDH01hnSpEb+t+5U5eBHgTE/vqLk wAncObrlM4yUg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XbClc3fScz6tyf; Sat, 26 Oct 2024 10:40:28 +0200 (CEST) From: Ihor Radchenko To: 8dcc <8dcc.git@gmail.com> Cc: emacs-orgmode@gnu.org Subject: Re: Underscores in "Function:" items In-Reply-To: <87wmi09tdx.fsf@gmail.com> References: <87wmi09tdx.fsf@gmail.com> Date: Sat, 26 Oct 2024 08:42:13 +0000 Message-ID: <87bjz7w90a.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.14 X-Spam-Score: -5.14 X-Migadu-Queue-Id: 3B0EB1D20B X-Migadu-Scanner: mx10.migadu.com X-TUID: v9QPH6TNtJG8 8dcc <8dcc.git@gmail.com> writes: > When exporting the following Org file to Texinfo: > > - Function: foo_bar arg :: > Contents. > > The part after the underscore is completely skipped: > > @defun foo > Contents. > @end defun Fixed, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=cff9c45afb > And, if I export it to HTML, the `bar' part is shown as a subscript, and > I don't know if it's intended: > >
Function: foobar arg
>
Contents.
This is intended. _ is syntax for subscript in Org markup. See https://orgmode.org/manual/Subscripts-and-Superscripts.html That section of the manual also talks how to modify export behavior wrt sub/superscripts if you need to use underscore often. > Another small detail, which might not be important, is that when > exporting to HTML, the description of the function is only wrapped in >

tags if it has more than one paragraph. This kind of makes sense, > but results in inconsistent spacing when multiple functions are close: > > Here's a list of functions: > - Function: foo arg :: > This has multiple paragraphs. > > Another paragraph. > - Function: bar arg :: > Just one line. > - Function: baz arg :: > One line, again. > Here's some text after the list. Wrapping into

is intentional. Not doing it will break other scenarios... However, see https://list.orgmode.org/orgmode/875ydracnq.fsf@localhost/ There are some cases when

is indeed creating awkward rendering. But I have no idea what we can do. It would be nice if someone with better HTML-foo chimed in with ideas. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at