Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 1.7.1
-
Fix Version/s: None
-
Component/s: HTML Editor
-
Labels:None
-
Affected Branches:MOODLE_17_STABLE
Description
The HTML editor collapses all multiple spaces to a single space in text. In fact, if you edit a document and save it, the first time you lose the spaces, if you then re-edit it, you lose the line breaks as well.
This happens inside preformatted text, so it kind of defeats the purpose
There does seem to be some code in HTMLArea.indent that tries to prevent this, I guess, but it doesn't seem to work.
For the time being, in htmlarea.php, line 2384, I have changed:
return HTMLArea.indent(html);
to
return html;
and that seems to serve my purpose.
An earlier version of moodle (1.6.3) did not have this problem.
Issue Links
| This issue duplicates: | ||||
| MDL-2738 | HTML Editor eating non-breaking spaces |
|
|
|
Activity
- All
- Comments
- History
- Activity
- Source
- Test Sessions