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

Incorrect code formatting (tags pre) #1300

Closed
AlexeiVokuev opened this issue Jan 9, 2020 · 3 comments
Closed

Incorrect code formatting (tags pre) #1300

AlexeiVokuev opened this issue Jan 9, 2020 · 3 comments

Comments

@AlexeiVokuev
Copy link

Incorrect code formatting (tags pre)

Version

Kiwi TCMS 7.2.1 (23 Dec 2019)

Steps to Reproduce

  1. Add description to TestPlan or TestCase with multiline code, for ex
    https://public.tenant.kiwitcms.org/case/7327/
  2. Click "Save"

Actual results

Unreadable formatting
tags "pre" displays as text

(<pre> and </pre>)

Expected results

tags "pre" correctly interpreted

@AlexeiVokuev
Copy link
Author

2020-01-09_1915

@atodorov
Copy link
Member

FTR the offending text is including the opening/closing 3 backticks (copy-paste this raw comment):

   @Test
   @Feature("test")
   fun test(){
      /** When **/
      val test = justTest()
	  /** Then **/
	  TestCase.assertEquals("test != 1", 1, test)
   }

@AlexeiVokuev
Copy link
Author

Yes, that's exactly what I did
The preview is displayed perfectly
The markup is broken that is in view mode after saving
2020-03-01_2157
2020-03-01_2157_001

atodorov added a commit that referenced this issue Aug 12, 2020
the issue has been resolved by the switch to bleach-allowlist in
555f8ab.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants