Homec4science

WebAlert: fixed HTML-to-text whitespace cleanup

Authored by Jerome Caffaro <jerome.caffaro@cern.ch> on Feb 11 2009, 11:12.

Description

WebAlert: fixed HTML-to-text whitespace cleanup

Fixed cleaning of whitespaces when transforming HTML to text.
Consecutive whitespaces are merged into a single space (Eg "<b>1 2</b>" -> "1 2").
Same for whitespaces separated by HTML tag (Eg: "<b>1 </b> 2" -> "1 2").
&nbsp; are preserved (Eg "<b>1&nbsp;&nbsp;&nbsp;2</b>" -> "1 2")

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Feb 11 2009, 11:59
Parents
R3600:34c9896da7a0: BibHarvest: timestamp harvesting test case fixed
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:a8c40fb1a30e: WebAlert: fixed HTML-to-text whitespace cleanup (authored by Jerome Caffaro <jerome.caffaro@cern.ch>).Feb 11 2009, 11:59