remove whitespaces

Change-Id: I05ef3c1ffd4e2179e0142a21abf8a4578718102e
replace while with for

Change-Id: I752376e42bf745b33a7be7478531eebd42893926
improve indentation

Change-Id: I10917e6a6a73af68ddb72a2b45666892d318806b
fix ODF validation errors

Introduced by 7d9bb549d498d6beed2c4050c402d09643febdfa

Change-Id: I09411486b93a031a0c405579d34d9e744b8002a7