Project

General

Profile

Actions

Bug #4301

closed

Off-by-one line number in Psych parse error

Added by headius (Charles Nutter) about 13 years ago. Updated over 12 years ago.

Status:
Third Party's Issue
Target version:
ruby -v:
ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-darwin10.6.0]
Backport:
[ruby-core:34690]

Description

=begin
For the following yaml:

based on "SGML/XML character entity reference" at http://www.bitjungle.com/isoent/


#DOUBLE LOW-9 QUOTATION MARK
#requires fontenc:T1
ldquor: ,,

Psych produces the following error:

/Users/headius/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/psych.rb:148:in `parse': couldn't parse YAML at line 5 column 9 (Psych::SyntaxError)

The error is at line 6, not line 5.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0