mirror of
https://github.com/python/cpython.git
synced 2026-10-29 02:45:15 +08:00
XML defines white space as " \t\r\n" (see XML 1.0, 2.3), but str.strip()
also strips other characters, such as U+00A0. Such characters could be
lost in ElementTree.indent(), in canonicalize(strip_text=True), and when
parsing with the whitespace-in-element-content feature turned off.
(cherry picked from commit e7c93b7e5c)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>