From: Steinar Bang <sb@dod.no>
To: emacs-orgmode@gnu.org
Subject: Re: How to avoid "Listing 1" on all code examples in org2blog export to wordpress?
Date: Sat, 28 Dec 2019 21:32:11 +0100 [thread overview]
Message-ID: <86o8vsnqd0.fsf@dod.no> (raw)
In-Reply-To: <868smwq34g.fsf@dod.no> (Steinar Bang's message of "Sat, 28 Dec 2019 09:13:35 +0100")
>>>>> Steinar Bang <sb@dod.no>:
>> Platform: GNU Emacs 26.3 (build 1, i686-w64-mingw32) of 2019-08-29
>> Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ c:/ProgramFiles/emacs-26.3-i686/share/emacs/26.3/lisp/org/)
>> Org2Blog 1.1.1
>> When I export to wordpress I get "Listing 1" on all text or code
>> examples in the wordpress blog, se e.g.
>> https://steinar.bang.priv.no/2019/11/30/rewriting-applications-to-use-pax-jdbc-config-and-liquibase/
>> Is there a way to lose the "Listing 1" text completely?
> I haven't been able to remove them from the export, which would have
> been my preferred solution,
The two lines of ox-html.el that produce "Listing 1", are:
https://github.com/bzg/org-mode/blob/master/lisp/ox-html.el#L2401
and
https://github.com/bzg/org-mode/blob/master/lisp/ox-html.el#L3487
I think the second one can be made empty by giving the code example an
empty caption (and this is probably also the one hidden by the CSS?)
But I have one case where neither the CSS suppression or an empty
caption works. It still shows the useless and meaningless "Listing 1".
Very annoying.
prev parent reply other threads:[~2019-12-28 20:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-27 19:40 How to avoid "Listing 1" on all code examples in org2blog export to wordpress? Steinar Bang
2019-12-28 8:13 ` Steinar Bang
2019-12-28 20:32 ` Steinar Bang [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86o8vsnqd0.fsf@dod.no \
--to=sb@dod.no \
--cc=emacs-orgmode@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.