Forums

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

Code macro does not maintain line breaks or code indentations in Safari

Dave Carlton April 8, 2019

Type {code

Select Code Block

Paste in 

case HID_POV:
    if(sval >= _StickElements[i].ref->min && sval <=  _StickElements[i].ref->max)
     {

It becomes:
case HID_POV:
   
if(sval >= _StickElements[i].ref->min && sval <=  _StickElements[i].ref->max)
     
{

Extra lines are added, indentation is gone

1 answer

0 votes
Dave Carlton April 8, 2019

Found part of the problem, copying code from Xcode the clipboard is in RTF. If I first paste into Aquamacs, then copy that text it is now plain text which can then be pasted into confluence retaining the lines and indentation.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events