Skip to content

[BUG] Strange behaviour with non breaking spaces  #2839

Description

@Beurt

Bug description

In French, we use a lot of non breaking spaces. And QON has a strange behaviour with them. I attached a test file that contains the two most used non breaking spaces.

test.md

it just contains the following markdown text:

---
title: non breaking space test
headingDivider: 1
--- 


# Test 1 classic NBSP


`+00A0   NO-BREAK SPACE`

+00A0   NO-BREAK SPACE


# Test 2 Narrow


`U+202F   NARROW NO-BREAK SPACE`

U+202F   NARROW NO-BREAK SPACE

When you open the file with a text editor such as kwrite you can see (the first type of) non breaking spaces. You can also use https://apps.timwhitlock.info/unicode/inspect?s= to identify them.

In kwrite (screenshot):

Screenshot of the file opened in kwrite showing the basic non breaking spaces

If I put this file in my note folder, and modify it with QON (e.g. adding a word somewhere), the non breaking spaces vanish from the QON saved file (we can check it with kwrite or the aforementioned website).

I am using QON 23.9.2 on Linux KDE Neon (Ubuntu Jammy) and all my scripts are deactivated.

Steps to reproduce

  1. copy the example file to the note folder
  2. edit it in QON
  3. wait for auto-save or save it in QON
  4. check for non breaking spaces in the file with another tool (I.e. kwrite)

Can anyone reproduce this?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions