Ticket #860 (closed defect: wontfix)
core - Dom.js getPlainText() crushes newlines
| Reported by: | mahemoff | Owned by: | JeremyRuston |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.6 |
| Component: | core | Version: | |
| Severity: | low | Keywords: | |
| Cc: |
Description (last modified by FND) (diff)
getPlainText() (which is used by wikifyPlainText) makes newlines disappear.
abc def
becomes "abcdef" whereas the desired behaviour in most cases would be "abc def".
The implementation delegates to the DOM's innerText/textContent. I propose that prior to that delegation, it replaces any [ \n\t]+ pattern with a single space.
Change History
Note: See
TracTickets for help on using
tickets.
