From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Tobias Zawada <i_inbox@tn-home.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: [bug] ox-koma-letter.el: Double translation of the signature to LaTeX
Date: Sat, 23 Jun 2018 23:25:32 +0200 [thread overview]
Message-ID: <87lgb5tctv.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <1189432802.586642.1529786460424@email.1und1.de> (Tobias Zawada's message of "Sat, 23 Jun 2018 22:41:00 +0200 (CEST)")
Hello,
Tobias Zawada <i_inbox@tn-home.de> 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
prev parent reply other threads:[~2018-06-23 21:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-23 20:41 [bug] ox-koma-letter.el: Double translation of the signature to LaTeX Tobias Zawada
2018-06-23 21:25 ` Nicolas Goaziou [this message]
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=87lgb5tctv.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=i_inbox@tn-home.de \
/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).