Skip to main content
Almtuna
Inspiring
September 3, 2021
Question

Non-breaking space in heading results in   in HTML5 link.

  • September 3, 2021
  • 1 reply
  • 1090 views

In my FM19 document I have a non-breaking space in a heading:

I have a cross-reference to this heading:

 

But in the generated HTML5 output, this cross-reference looks like:

 

How can I avoid this   output in the generated HTML5?

This topic has been closed for replies.

1 reply

Bob_Niland
Community Expert
Community Expert
September 3, 2021

Never having tried it, rendering \x11 (CTRL+space) to   strikes me as the desired default behavior for FM.

But in this case, it looks like it's been rendered as  , causing the browser to display the markup, rather than honor it.

What does the raw HTML show?

Almtuna
AlmtunaAuthor
Inspiring
September 3, 2021

The html source code looks like:

Can you read that tiny text? Here comes a closer look:

Community Expert
September 3, 2021

It does work,  the output looks fine after that replace.

However, I can't add this manual step to the publishing procedure. (There are hundreds of files.)

 

I'll file a bug report.


With Notepad++ you can change this across all files of your project with a single command. It does not matter, if there are 100 files or 1000.