[th/generate-docs] rework "generate-docs-nm-property-infos.py" and do stricter parsing
rework "generate-docs-nm-property-infos.py".
- whitespace and newlines are not preserved better.
- the parsing got stricter, and would fail for unexpected input. When there is a failure, we would log the offending file:line.
- various cleanups.