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/)]

2024-04-24 Thread Max Nikulin
On 27/03/2023 21:16, Ihor Radchenko wrote: +++ b/etc/ORG-NEWS @@ -145,6 +145,27 @@ execution completes. The new ~:async~ header allows users to continue editing with Emacs while a ~:session~ block executes. ** Miscellaneous +*** Blank lines after removed objects are not retained during

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/)]

2023-04-14 Thread Ihor Radchenko
Ihor Radchenko writes: > I am attaching tentative patch that simply keeps spaces, but if and only > if the previous object does not end with whitespace (including newline). Applied, onto main. Fixed. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=960722661 -- 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/)]

2023-03-27 Thread Ihor Radchenko
Ihor Radchenko writes: > Max Nikulin writes: > >>>[previous object ] >> >> Yes, you do. >> >> I expected some complications due to newline characters (not line break >> markup objects), but they are not included in :post-blank and >> represented as "\n" string objects. > > Newlines are

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/)]

2023-03-14 Thread Ihor Radchenko
Max Nikulin writes: > On 11/03/2023 17:38, Ihor Radchenko wrote: >> >> Newlines are tricky. They may or may not be significant. >> For example, in CJK paragraphs, newlines are to be stripped. >> >> I think that a reasonable thing to do could be not adding newlines if >> the previous object is

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/)]

2023-03-13 Thread Max Nikulin
On 11/03/2023 17:38, Ihor Radchenko wrote: Newlines are tricky. They may or may not be significant. For example, in CJK paragraphs, newlines are to be stripped. I think that a reasonable thing to do could be not adding newlines if the previous object is a plain string ending with a newline.

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/)]

2023-03-11 Thread Ihor Radchenko
Max Nikulin writes: >>[previous object ] > > Yes, you do. > > I expected some complications due to newline characters (not line break > markup objects), but they are not included in :post-blank and > represented as "\n" string objects. Newlines are tricky. They may or may not be

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/)]

2023-03-10 Thread Max Nikulin
On 10/03/2023 19:08, Ihor Radchenko wrote: Do I understand correctly that you propose the following: If we have [previous object ][object to be removed ] change it to [previous object ] Yes, you do. I expected some complications due to newline characters (not line break markup

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/)]

2023-03-10 Thread Ihor Radchenko
Max Nikulin writes: >> 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

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/)]

2023-03-09 Thread Max Nikulin
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

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/)]

2023-03-09 Thread Ihor Radchenko
Max Nikulin 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

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/)]

2023-03-08 Thread Max Nikulin
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). Max Nikulin writes:

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/)]

2023-03-07 Thread Ihor Radchenko
Max Nikulin writes: > On 05/03/2023 20:01, Ihor Radchenko wrote: >> Consider >> >> * Heading [0/1] text > ... >> Text with newline\\ >> [footnote] more text. > ... >> Text (parens[footnote] ). > > I am not convinced that space should be dropped here. I agree about the last example, but what

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/)]

2023-03-06 Thread Max Nikulin
On 05/03/2023 20:01, Ihor Radchenko wrote: Consider * Heading [0/1] text ... Text with newline\\ [footnote] more text. ... Text (parens[footnote] ). I am not convinced that space should be dropped here. It might be enough to use spaces if and only if there are no preceding spaces. Or

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/)]

2023-03-05 Thread Ihor Radchenko
Andrea Lazzarini writes: > If some languages require it and some not, as you correctly say, couldn't the > behaviour be customizable? Maybe. But we are not only talking about footnotes. Consider * Heading [0/1] text Or Text with newline\\ [footnote] more text. or Text (parens[footnote]

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/)]

2023-03-05 Thread Andrea Lazzarini
If some languages require it and some not, as you correctly say, couldn't the behaviour be customizable? > Il giorno 5 mar 2023, alle ore 13:42, Ihor Radchenko ha > scritto: > > > Andrea Lazzarini writes: >> Consider the fact that I had to put an extra space before the footnote >> exactly

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/)]

2023-03-05 Thread Ihor Radchenko
Andrea Lazzarini writes: > Consider the fact that I had to put an extra space before the footnote > exactly to have a space (not an extra one) in the result. > > As you say, couldn't it be replaced with: > >> maybe with number of spaces equal to :post-blank ? Sure, but footnotes are expected

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/)]

2023-03-05 Thread Andrea Lazzarini
Consider the fact that I had to put an extra space before the footnote exactly to have a space (not an extra one) in the result. As you say, couldn't it be replaced with: > maybe with number of spaces equal to :post-blank ? > Il giorno 5 mar 2023, alle ore 13:06, Ihor Radchenko ha >

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/)]

2023-03-05 Thread Ihor Radchenko
Max Nikulin writes: > In my opinion, the filter removing footnotes should transfer afterspaces > to preceding objects. I am not sure. Consider text like "Pellentesque dapibus suscipit ligula. [fn:1] Donec posuere augue in quam." with space before the footnote. If we replace the footnote with

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/)]

2023-03-04 Thread Andrea Lazzarini
I totally agree with Max Nikulin: wouldn't that be an improvement? That would make things a lot easier for those instances in which you want to put the footnotes back in. > Il giorno 3 mar 2023, alle ore 17:47, Max Nikulin ha > scritto: > > On 03/03/2023 22:47, Ihor Radchenko wrote: >> Max

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/)]

2023-03-03 Thread Max Nikulin
On 03/03/2023 22:47, Ihor Radchenko wrote: Max Nikulin writes: Self-containing example: 8< #+options: f:nil Pellentesque dapibus suscipit ligula.[fn::1 ftnt] Donec posuere augue in quam. >8 This is because spaces after Org syntax objects are considered a part of those

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/)]

2023-03-03 Thread Ihor Radchenko
Max Nikulin writes: > Self-containing example: > > 8< > #+options: f:nil > > Pellentesque dapibus suscipit ligula.[fn::1 ftnt] Donec posuere augue > in quam. > >8 This is because spaces after Org syntax objects are considered a part of those syntax objects. So, excluding

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/)]

2023-03-03 Thread Max Nikulin
On 03/03/2023 17:07, Andrea Lazzarini wrote: After setting 'org-export-with-footnotes' to 'nil', the space following the footnote is removed when exporting (I’ve tested this with pandoc [docx and html]). I am unsure if pandoc is relevant. However the issue exists for ox, e.g. ox-latex and

[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/)]

2023-03-03 Thread Andrea Lazzarini
After setting 'org-export-with-footnotes' to 'nil', the space following the footnote is removed when exporting (I’ve tested this with pandoc [docx and html]). So, given this example: «Pellentesque dapibus suscipit ligula.[fn:1] Donec posuere augue in quam.» The resulting text is: