Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Duplicate
-
Affects Version/s: 1.5, 1.9.1
-
Fix Version/s: None
-
Component/s: HTML Editor
-
Labels:None
-
Environment:All
-
Affected Branches:MOODLE_15_STABLE, MOODLE_19_STABLE
Description
When I cut and paste into the HTML editor and then save, some of the spaces have disappeared. This seems to be completely random, only about 10% of the spaces disappear. This is in Firefox on windows XP.
From Hiroto Kagotani (kagotani at cne.okayama-u.ac.jp) Wednesday, 27 April 2005, 07:46 PM:
htmlarea.php 1.46 in CVS does not have the problem but 1.47 has. A new function formathtml() introduced in 1.47 removes all newline codes in html, so you can reproduce the problem by:
Toggle to HTML source mode and enter
a b
c d
and toggle to wysiwyg mode, then again toggle to HTML source mode.
I think formathtml() should remove newline codes only at the beginning and the end of the html source. Replacing newline codes to spaces may cause another problem for other languages such as Japanese. A single newline code in Japanese text is just simply ignored but a space code is took into account.
From Gustav Delius (gwd2 at york.ac.uk) Thursday, 28 April 2005, 07:15 PM:
It seems to me that Janne has now fixed this. Thank you both for your work on this. Should the bug be closed?
From Janne Mikkonen (janne.mikkonen at julmajanne.com) Thursday, 28 April 2005, 07:31 PM:
Lets not close this one until it's really gone...