emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Underscores in "Function:" items
@ 2024-10-22 13:09 8dcc
  0 siblings, 0 replies; only message in thread
From: 8dcc @ 2024-10-22 13:09 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1166 bytes --]

Hello,

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

And, if I export it to HTML, the `bar' part is shown as a subscript, and
I don't know if it's intended:

    <dt>Function: foo<sub>bar</sub> arg</dt>
    <dd>Contents.</dd>

Another small detail, which might not be important, is that when
exporting to HTML, the description of the function is only wrapped in
<p> 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.

This is not a huge issue, since the user can just add some CSS (which I
personally use in my blog):

    dl.org-dl dd p:nth-child(1) {
        margin-top: 0px;
    }

    dl.org-dl dd p:nth-last-child(1) {
        margin-bottom: 0px;
    }

Thank you.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 255 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-10-22 13:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-22 13:09 Underscores in "Function:" items 8dcc

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).