Project

General

Profile

Actions

Bug #5109

closed

YAML output has changed

Added by trans (Thomas Sawyer) over 12 years ago. Updated over 12 years ago.

Status:
Third Party's Issue
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

Updated by tenderlovemaking (Aaron Patterson) over 12 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.

Actions

Also available in: Atom PDF

Like0
Like0