emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Étienne Deparis" <etienne@depar.is>
To: emacs-orgmode@gnu.org
Subject: Preserving non breaking spaces in HTML export (maybe other?)
Date: Tue, 27 Jun 2023 10:33:03 +0000	[thread overview]
Message-ID: <87cz1hgpbt.fsf@depar.is> (raw)

Hi,

If I’m not wrong, I think I just came across a little issue while 
using
HTML export in org mode.

As a french writer, we use a lot of non-breaking spaces¹ in 
various
situation. For exemple before double column or question mark:

    Ceci est un exemple :

    N’est-il pas interessant ?

¹ https://en.wikipedia.org/wiki/Non-breaking_space

Above I use a "narrow no-breaking space", but historically other 
might
have used plain non-breaking space ( ).

However, after export all those spaces have disapeared. I cannot 
find
where in the code this replacement is made, thus if one know 
better how
the exporter run here, it would be great to share. It would let me 
try
to work around this.

By order of preference, I’d have expected:

- spaces to be replaced by their HTML entity (either &#8239; or 
  &nbsp;)
- spaces left as this (no replacement).

I’m also curious about the rational behind the replacement. Is 
this to
protect something?

Thank you very much for your help,

Étienne


             reply	other threads:[~2023-06-27 10:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-27 10:33 Étienne Deparis [this message]
2023-06-27 10:54 ` Preserving non breaking spaces in HTML export (maybe other?) Ihor Radchenko
2023-06-27 11:14   ` Étienne Deparis
2023-06-27 12:04     ` Ihor Radchenko
2023-06-27 15:59     ` Max Nikulin
2023-06-27 16:00     ` Max Nikulin

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=87cz1hgpbt.fsf@depar.is \
    --to=etienne@depar.is \
    --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 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).