Syntax Highlighting for diff language on the code macro is wrong

XMLWordPrintable

    • 3
    • Severity 3 - Minor

      Summary

      Using "diff" Syntax Highlighting on the code block, it wrongly highlights a new line after a "" if there's no character at the "" line

      Steps to Reproduce

      1. Insert a Code Block macro;
      2. Select diff language
      3. Insert the text below:
        + This should be highlighted
        + This too
        +
        This not
        and this not

      Expected Results

      The text "This not" shouldn't be highlighted

      Actual Results

      The new line is highlighted:

      Workaround

      Add a space character at the line with the "+"

            Assignee:
            Unassigned
            Reporter:
            Guilherme T (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: