Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-11-26 23:44:46 +03:00
parent 7fbc5e863e
commit baeb64cde5
2 changed files with 3 additions and 0 deletions

View File

@ -1532,6 +1532,7 @@ var Outline = {
// NOTE: we are ignoring the .collapsed attr here
parsed = this.__code2html__(data.text, {...data})
html.innerHTML =
//(parsed.text == '' || parsed.text.endsWith('</pre>')) ?
parsed.text == '' ?
parsed.text
// NOTE: adding a space here is done to prevent the browser
@ -1545,6 +1546,7 @@ var Outline = {
delete parsed.style
} else {
html.innerHTML =
//(data.text == '' || data.text.endsWith('</pre>')) ?
data.text == '' ?
data.text
// NOTE: adding a space here is done to prevent the browser

View File

@ -60,6 +60,7 @@ var setup = function(){
```
- _this seems to be because of a stray `\n` after re-render + `white-space: ...` in the `.view` element..._
_...this is logical as we do not render code on load and to on after edit_
- narrowed the issue down to `.update(..)` and adding a ' ' to the text...
- ways to fix:
- semi-active (current):
- active mode currently disabled (see: `UPDATE_CODE_SIZE`)