Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Messages starting with a number and a followed by a full stop is rendered without the first digit #24282

Closed
mehmetalianil opened this issue Jan 21, 2023 · 2 comments
Labels

Comments

@mehmetalianil
Copy link

Steps to reproduce

  1. I am just sending a message that starts with a number that is followed by a full stop. For example:
    117. olcum
    image

Outcome

What did you expect?

I expect the message to be rendered as is

What happened instead?

The message is rendered without the first digit as:
17.olcum
image

It seems that there is an issue about the HTML formatting. The number is wrapped in an ol tag
Redacted message source:

{
  "type": "m.room.message",
  "content": {
    "org.matrix.msc1767.message": [
      {
        "body": "117. olcum icin sadece digerlerinde peak resolve edilemiyor",
        "mimetype": "text/plain"
      },
      {
        "body": "<ol start=\"117\">\n<li>olcum icin sadece digerlerinde peak resolve edilemiyor</li>\n</ol>\n",
        "mimetype": "text/html"
      }
    ],
    "body": "117. olcum icin sadece digerlerinde peak resolve edilemiyor",
    "msgtype": "m.text",
    "format": "org.matrix.custom.html",
    "formatted_body": "<ol start=\"117\">\n<li>olcum icin sadece digerlerinde peak resolve edilemiyor</li>\n</ol>\n"
  },
}

Operating system

Windows

Application version

Element version: 1.11.17 Olm version: 3.2.12

How did you install the app?

Don't remember

Homeserver

matrix.org and homeserver

Will you send logs?

No

@tulir
Copy link
Contributor

tulir commented Jan 21, 2023

Duplicate of #14621

@mehmetalianil
Copy link
Author

Thanks, I had made a quick search but couldn't find this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants