OpenZWave / open-zwave

a C++ library to control Z-Wave Networks via a USB Z-Wave Controller.
http://www.openzwave.net/
GNU Lesser General Public License v3.0
1.05k stars 918 forks source link

Preserve whitespace in OZW XML cache #2586

Closed markruys closed 3 years ago

markruys commented 3 years ago

The ozwcache_*.xml file does not preserve white space. Config XML might contain useable formatting, so don't condense white space into a single space.

E.g., a configuration XML might contain:

 <Help>This parameter allows to enable different additional functions of the device.
                1) Enable open window detector (normal)
                2) Enable open window detector (rapid)
                4) Increase receiver sensitivity (shortens battery life)
                8) Enable LED indications when controlling remotely</Help>

Currently this is stored in the OZW XML cache as:

 <Help>This parameter allows to enable different additional functions of the device. 1) Enable open window detector (normal) 2) Enable open window detector (rapid) 4) Increase receiver sensitivity (shortens battery life) 8) Enable LED indications when controlling remotely</Help>

This makes it quiet hard to read.

nechry commented 3 years ago

thank @markruys