Wrong escaping of review comments containing single quote with python syntax

XMLWordPrintable

    • Severity 3 - Minor
    • 0

      Wrong escaping of single quote in python syntax

       

      Steps to Reproduce

      1. Create review comment with python syntax containing single quote :// code placeholder 
      {code:python} 
      def function(parameter):
         dict_ = {1: 'test', 2: 'another'}
         print(dict_[2])
      {code}
      

      Expected result

      A correctly rendered single quote.

      def function(parameter):
         dict_ = {1: 'test', 2: 'another'}
         print(dict_[2])
      

      Actual Result

      A single quote is replaced by escape sequence.

       def function(parameter):
         dict_ = {1: 'test', 2: 'another'}
         print(dict_[2])   
      

       

      Workaround

      Use {code:java} instead of {code:python} in review comments

            Assignee:
            Unassigned
            Reporter:
            Sebastian Pacuk (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: