emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Max Nikulin <manikulin@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [BUG] No space after footnote with org-export-with-footnotes set to nil [9.6.1 ( @ /Users/test/.emacs.d/elpa/28.0/develop/org-9.6.1/)]
Date: Thu, 9 Mar 2023 22:04:37 +0700	[thread overview]
Message-ID: <tucsi6$6k3$1@ciao.gmane.io> (raw)
In-Reply-To: <87y1o6p02i.fsf@localhost>

On 09/03/2023 19:43, Ihor Radchenko wrote:
> Max Nikulin writes:
>> Both "Heading" and "[0/1]" have the same :post-blank " ", so when
>> stripping the statistics cookie use " " :post-blank for "Heading"
>> (retain current value).
> 
> Sorry, but we are mis-communicating here.

No, it just means that I am not familiar enough with org-element structures.

> :post-blank can be either nil or a number of spaces/tabs after object.
> 
> Plain strings always have :post-blank nil.
> So do line breaks.

If preceding object is string than trailing spaces should be taken into 
account instead of :post-blank. If footnote reference or similar object 
has more :post-blank spaces than replace it by string with space 
characters to have footnote's :post-blank in total. Alternatively append 
these spaces to the preceding string.

> ----
> Text with newline \\
>   [fn:1]  more text.
> ----
>     #("Text with newline " 0 18
>       (:parent #2))
>     (line-break
>      (:begin 19 :end 22 :post-blank 0 :parent #2))
>     #(" " 0 1
1 space--^
>     (footnote-reference
>      (:label "1" ... :post-blank 2 :parent #2))
2 spaces---------------------------^
>     #("more text.\n" 0 11

So stripping the footnote use 2 spaces "  " instead of preceding " " or 
add another " " (unsure if 2 adjacent strings may be a problem for 
export backends).

I was imprecise, but I do not see any contradictions.




  reply	other threads:[~2023-03-09 15:05 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-03 10:07 [BUG] No space after footnote with org-export-with-footnotes set to nil [9.6.1 ( @ /Users/test/.emacs.d/elpa/28.0/develop/org-9.6.1/)] Andrea Lazzarini
2023-03-03 14:44 ` Max Nikulin
2023-03-03 15:47   ` Ihor Radchenko
2023-03-03 16:47     ` Max Nikulin
2023-03-04 15:43       ` Andrea Lazzarini
2023-03-05 12:06       ` Ihor Radchenko
2023-03-05 12:32         ` Andrea Lazzarini
2023-03-05 12:42           ` Ihor Radchenko
2023-03-05 12:54             ` Andrea Lazzarini
2023-03-05 13:01               ` Ihor Radchenko
2023-03-06 12:18                 ` Max Nikulin
2023-03-07 13:59                   ` Ihor Radchenko
2023-03-08 15:14                     ` Max Nikulin
2023-03-09 12:43                       ` Ihor Radchenko
2023-03-09 15:04                         ` Max Nikulin [this message]
2023-03-10 12:08                           ` Ihor Radchenko
2023-03-10 14:03                             ` Max Nikulin
2023-03-11 10:38                               ` Ihor Radchenko
2023-03-13 15:17                                 ` Max Nikulin
2023-03-14 12:19                                   ` Ihor Radchenko
2023-03-27 14:16                                 ` Ihor Radchenko
2023-04-14 11:47                                   ` Ihor Radchenko
2024-04-24 16:07                                   ` Max Nikulin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='tucsi6$6k3$1@ciao.gmane.io' \
    --to=manikulin@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).