[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [bug] ox-koma-letter.el: Double translation of the signature to
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [bug] ox-koma-letter.el: Double translation of the signature to LaTeX |
Date: |
Sat, 23 Jun 2018 23:25:32 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hello,
Tobias Zawada <address@hidden> writes:
> org-export-data for the signature causes double LaTeX translation at
> https://emacs.stackexchange.com/questions/42200/prevent-org-export-from-expanding-as-backslash/42207?noredirect=1#comment66334_42207.
>
> The translator for the headlines org-koma-letter-headline is used to
> extract the :closing: headline and to put its stuff into
> org-koma-letter-special-contents. org-koma-letter--get-tagged-contents
> retrieves the closing from there. I have the impression that
> org-koma-letter-headline already gets the translated headline contents
> and translating it again with org-export-data is a bad idea.
Correct.
> (org-trim
> - (org-export-data
> - (org-koma-letter--get-tagged-contents 'closing)
> - info)))))
> + (org-koma-letter--get-tagged-contents 'closing)
> + info))))
This will fail if `org-koma-letter--get-tagged-contents' returns a nil
value. I applied a slightly different patch.
Thank you for the analysis and the patch.
Regards,
--
Nicolas Goaziou