= in comments disappears and increases font size

ui

(Todd) #1
  • versions used
    Version 7.1 (build 11001)LGPL v3

  • error observed
    When adding comments to a issue, putting = sign causes odd behavior.

  • steps to reproduce
    Go to issues
    Add a comment with = symbol such as:

“Something like…
public ByteField LivedInComState { get; set; } = new ByteField();”

Where I was adding a suggestion.
Save it and observe the displayed result.

  • potential workaround
    None that I know of.

(Janos Gyerik) #2

I agree that = embedded in text should not have such weird results.
Here’s the ticket to track the progress of the fix:
https://jira.sonarsource.com/browse/SONAR-11081

In this particular example, it would be best to apply code style to the sample code part of the comment, using double back-ticks, as hinted by the comment form:
image

This way the comment will be rendered as: