Weird flow of text enclosed within <font> tags

Steps to reproduce

Put this in a new page. Edit mode:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Did you follow the troubleshooting guide? [Y/N]

Yes. I can see the same problem in the sandbox.

Expected result

Normal flow in Edit mode.

Actual result

Normal flow, not that anything below the first line should be shifted to the right, as if with tabs

Environment

SYSTEM INFO:
Obsidian version: v1.8.10
Installer version: v1.8.3
Operating system: #1 SMP Debian 5.10.234-1 (2025-02-24) 5.10.0-34-amd64
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

Keep in mind that to reproduce the problem you will need to put ‘font color’ tags. Edit mode only.

Hello.

Can’t see your code in the original post (code needs to be wrapped in backticks ```` on forum posts), but you refer to font tags, which are now deprecated. Does it work if you use span tags?

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do <span style="color:red">eiusmod tempor</span> incididunt ut labore et dolore magna aliqua.

If you are using span tags, can you share the code on the forum using backticks to prevent the forum editor parsing the code?

2 Likes

Their original is

<font color="lightblue">"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </font>

which seems fine on my end.

CleanShot 2025-05-17 at 14.59.49

1 Like

Thanks for sharing the original code. :hand_with_index_finger_and_thumb_crossed: It also works in a local test vault. :blush:

Perhaps the OP’s installer needs updating? :person_shrugging:

For the record, using the <span> tag didn’t help. But I have figured out what the problem was. I had a space symbol before the opening of the first tag (font, span - doesn’t matter).