YAML relies on consistent indentation. Match the indentation level when replacing content in an example configuration file and make sure that your text editor uses spaces, not tab characters, to indent.
This is why I think YAML is the stupidest possible configuration language out there.
There’s an unwritten rule/principle of language design. Given high level languages communicate intent between developers, of which configuration files are a declarative part, you should never ever differentiate between white space. YAML defies that principle in abundance