[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: |
Ihor Radchenko |
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, 09 Mar 2023 12:43:17 +0000 |
Max Nikulin <manikulin@gmail.com> writes:
> On 07/03/2023 20:59, Ihor Radchenko wrote:
>> I agree about the last example, but what about "Heading [0/1] text"?
>
> 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.
: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.
>> May you elaborate about "newline > tab, tab = 8 spaces"?
>
> Consider your earlier example:
>
>>>> Text with newline\\
>>>> [footnote] more text.
Try M-: (pp (org-element-parse-buffer))
----
Text with newline \\
[fn:1] more text.
----
You will get
(org-data
(:begin 1 :contents-begin 1 :contents-end 42 :end 42 :robust-begin 3
:robust-end 40 :post-blank 0 :post-affiliated 1 :path "/tmp/bug.org" :mode
org-data :CATEGORY "bug" :granularity nil)
(section
(:begin 1 :end 42 :contents-begin 1 :contents-end 42 :robust-begin 1
:robust-end 40 :post-blank 0 :post-affiliated 1 :mode first-section
:granularity nil :parent #0)
(paragraph
(:begin 1 :end 42 :contents-begin 1 :contents-end 42 :post-blank 0
:post-affiliated 1 :mode top-comment :granularity nil :parent #1)
#("Text with newline " 0 18
(:parent #2))
(line-break
(:begin 19 :end 22 :post-blank 0 :parent #2))
#(" " 0 1
(:parent #2))
(footnote-reference
(:label "1" :type standard :begin 23 :end 31 :contents-begin nil
:contents-end nil :post-blank 2 :parent #2))
#("more text.\n" 0 11
(:parent #2)))))
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
- 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/)], Max Nikulin, 2023/03/03
- 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 <=
- 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/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/)], 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