Improve the YamlScalar.span values with trailing whitespace

Fixes https://github.com/dart-lang/yaml/issues/51

Also remove dead line from changelog
4 files changed
tree: e89e1d4470e26709b70c973b82e0d5c708d0b8b7
  1. .gitignore
  2. .test_config
  3. .travis.yml
  4. CHANGELOG.md
  5. LICENSE
  6. README.md
  7. analysis_options.yaml
  8. benchmark/
  9. lib/
  10. libyaml-license.txt
  11. pubspec.yaml
  12. test/
README.md

A parser for YAML.

Build Status

Use loadYaml to load a single document, or loadYamlStream to load a stream of documents. For example:

import 'package:yaml/yaml.dart';

main() {
  var doc = loadYaml("YAML: YAML Ain't Markup Language");
  print(doc['YAML']);
}

This library currently doesn't support dumping to YAML. You should use json.encode from dart:convert instead:

import 'dart:convert';
import 'package:yaml/yaml.dart';

main() {
  var doc = loadYaml("YAML: YAML Ain't Markup Language");
  print(json.encode(doc));
}