django-summernote
django-summernote copied to clipboard
newline \n characters not displaying correctly in inline widget's codeview
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?