diff options
| author | Thibault Delavallée <tde@openerp.com> | 2013-10-24 10:44:11 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2013-10-24 10:44:11 +0200 |
| commit | 357676b6dea6694df1aebdf3e9d8eabf38654ec8 (patch) | |
| tree | 3c95714a2e832571144f3e01c442fd168f565d7f /addons/website/static/lib/ckeditor/plugins/widget/dev/console.js | |
| parent | 9b7398820e86506bd77fb3f94d8a74d37a5ee625 (diff) | |
| parent | dbe253b0e490317dd26c772fd22bb578348a7d80 (diff) | |
[MERGE] [FIX] tools: mail: fixed shortening of html content.
Fixed length computation of text in html nodes: multiples successive whitespaces are considered as one whitespaces; better truncate position when adding a read more link; now always protect words (placed after the first word that exceeds the shorten position); pre nodes are preserved about whitespaces; when the read more link should go into a quote, it instead goes at the end of the first parent node not being quoted instead of at a wrong position.
Misc :
- removed an unnecessary loop by merging two root.iter() that do not interfere
- changed occurrences of getiterator to iter, because getiterator is deprecated
- nodes are cleaned after processing, removing all attributes used to tag nodes
- fixed a bug about cleaning span containing only whitespaces not always cleaned
Added tests for shorten position.
bzr revid: tde@openerp.com-20131024084411-pytwt9g1gdmoebzc
Diffstat (limited to 'addons/website/static/lib/ckeditor/plugins/widget/dev/console.js')
0 files changed, 0 insertions, 0 deletions
