Fix YamlEditor.update method leaving trailing spaces at eol (dart-lang/yaml_edit#42)

* Fix for selecting the correct index in insertion

* Add new test cases

* Add more tests and format corrections

* Update `CHANGELOG.md`

* Fix leaving whitespace at eol on YamlEditor.update & update the testcases

* Fix formatting

* Apply proposed change

* Update lib/src/map_mutations.dart

Co-authored-by: Jonas Finnemann Jensen <jopsen@gmail.com>

---------

Co-authored-by: Jonas Finnemann Jensen <jopsen@gmail.com>
9 files changed
tree: 791fdda8bc38c8143b689bb83622514f5e65341c
  1. pkgs/