Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to retain code block syntax

Vadiraj Joish April 13, 2023

When a code block is created in the comment section, the space/new lines change.

For example, if I paste the below code,

db.Connection.autocommit = True
i = 0

 

it turns to ,

db.Connection.autocommit = True i = 0

 

How can I retain my code block ?

1 answer

0 votes
Sagar Mahajan
Community Champion
April 22, 2023

Hi @Vadiraj Joish 

Can you please let me know which mode you are using for comment text mode or visual mode as on both modes I am able to see that it's working as expected.

I have past experience with visual mode where some extra lines are get added on the bottom when code block macro is used in Jira comment.

Can you try adding a paragraph of 5-6 lines and see if add as a new lines or not, because sometime these issues are wired but fix by changing the modes and then comment.

Vadiraj Joish May 24, 2023

Visual mode doesn't retain the syntax as pasted.

Suggest an answer

Log in or Sign up to answer