django-summernote icon indicating copy to clipboard operation
django-summernote copied to clipboard

newline \n characters not displaying correctly in inline widget's codeview

Open tylerecouture opened this issue 5 years ago • 0 comments

If I enter this code into my SummernoteInplaceWidget

<p>Why do the li's collapse in an odd way?</p>
<ol> 
  <li>item 1</li> 
  <li>item 2</li>
</ol>

Then I save it, and it displays like this in codeview:

<p>Why do the li's collapse in an odd way?</p>
<ol> <li>item 1</li> <li>item 2</li>
</ol>

However, if I view the same thing in the admin (iframe widget) in codeview, it looks like I would expect:

<p>Why do the li's collapse in an odd way?</p>
<ol> 
  <li>item 1</li> 
  <li>item 2</li>
</ol>

So the text is saving properly, but something is wrong with the way the inplace widget is... doing something?

tylerecouture avatar Apr 22 '19 01:04 tylerecouture