Skip to content

asciimath formula renders new line before operator #5440

@cdp224

Description

@cdp224

Preflight Checklist

  • [x ] I agree to follow the Code of Conduct that this project adheres to.
  • [x ] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

You must search the issue tracker and agree to the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.

If you are technical, you should report bugs along the lines of https://marker.io/blog/how-to-write-bug-report. If you are not technical, we will make allowances, please try to make an effort to understand the process.

Describe the bug

Rendering asciimath formulas results in the inserstion of extra new-lines. This happens with text-labels for lines. Rendering using a stand-alone text works.

To Reproduce

Environment:

  • Web-Application: v29.3.4
  • Browser: Edge 143.0.3650.139

Steps to reproduce the behavior:

  1. Createa new drawing
  2. Enable rendering of mathematical formulas
  3. Create a text and enter 1+1
  4. Correct formula 1+1 shows
  5. Create a line
  6. doubleclick on the line and enter 1+1
  7. Incorrect rendering: 1 new-line +1

expected_behavior: No extra new line would have been expected in that case. This behavior is new compared to older versions (unknown version).

Image

If applicable, add screenshots to help explain your problem.

draw.io version (In the Help->About menu of the draw.io editor):

  • draw.io v 29.3.4

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Browser Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

I tested the problem in incognito/private mode with all browser extensions switched off, write "yes" below:

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions