[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [BUG] No space after footnote with org-export-with-footnotes set to
From: |
Max Nikulin |
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 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 |
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.
- 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/)], (continued)
- 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/)], Andrea Lazzarini, 2023/03/04
- 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/)], Ihor Radchenko, 2023/03/05
- 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/)], Andrea Lazzarini, 2023/03/05
- 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/)], Ihor Radchenko, 2023/03/05
- 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/)], Andrea Lazzarini, 2023/03/05
- 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/)], Ihor Radchenko, 2023/03/05
- 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/)], Max Nikulin, 2023/03/06
- 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/)], Ihor Radchenko, 2023/03/07
- 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/)], Max Nikulin, 2023/03/08
- 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/)], Ihor Radchenko, 2023/03/09
- 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/)],
Max Nikulin <=
- 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/)], Ihor Radchenko, 2023/03/10
- 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/)], Max Nikulin, 2023/03/10
- 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/)], Ihor Radchenko, 2023/03/11
- 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/)], Max Nikulin, 2023/03/13
- 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/)], Ihor Radchenko, 2023/03/14
- 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/)], Ihor Radchenko, 2023/03/27