Project

General

Profile

Bug #5109

YAML output has changed

Added by trans (Thomas Sawyer) about 8 years ago. Updated about 8 years ago.

Status:
Third Party's Issue
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3dev (2011-07-03 trunk 32372) [x86_64-linux]
Backport:
[ruby-core:38569]

Description

Have no idea why, but I noticed that 1.9.3 is producing strange YAML output:

snippet:

  • 35: ''
  • 36: ! ' Then ''the result should be (((\d+))) on the screen'' do |n|'
  • 37: ! ' @result.assert == n.to_i'
  • 38: ! ' end'
  • 39: end

Where as in 1.9.2 it comes out more like one would expect:

snippet:

  • 35: ""
  • 36: " Then 'the result should be (((\d+))) on the screen' do |n|"
  • 37: " @result.assert == n.to_i"
  • 38: " end"
  • 39: end

History

Updated by tenderlovemaking (Aaron Patterson) about 8 years ago

  • Status changed from Open to Third Party's Issue

libyaml detects if you have single or double quotes in your string. If it sees those characters, it will escape them and emit a tagged string literal.

Also available in: Atom PDF