Issue Type: Bug Bug
Affects Versions: JRuby 1.6.7
Assignee: Unassigned
Components: Ruby 1.8.7, Ruby 1.9.2, Standard Library
Created: 27/Aug/12 8:09 PM
Description:

YAML.parse cannot strip trailing tabs from String values.

1.8 mode:

Unable to find source-code formatter for language: ruby. Available languages are: _javascript_, sql, xhtml, actionscript, none, html, xml, java
YAML.load("key: 10\t\t#comment")
# => {"key"=>"10\t\t#comment"}

1.9 mode:

Unable to find source-code formatter for language: ruby. Available languages are: _javascript_, sql, xhtml, actionscript, none, html, xml, java
YAML.load("key: 10\t\t#comment")
ArgumentError: syntax error in "<reader>", line 1, column 8:
    key: 10		#comment
           ^
	from org/jruby/ext/psych/PsychParser.java:279:in `parse'
	from /usr/local/jruby-1.6.7.2/lib/ruby/1.9/psych.rb:148:in `parse_stream'
	from /usr/local/jruby-1.6.7.2/lib/ruby/1.9/psych.rb:119:in `parse'
	from /usr/local/jruby-1.6.7.2/lib/ruby/1.9/psych.rb:106:in `load'
	from (irb):2:in `evaluate'
	from org/jruby/RubyKernel.java:1088:in `eval'
	from org/jruby/RubyKernel.java:1410:in `loop'
	from org/jruby/RubyKernel.java:1197:in `catch'
	from org/jruby/RubyKernel.java:1197:in `catch'
	from /usr/local/jruby-1.6.7.2/bin/irb:13:in `(root)'
Project: JRuby
Labels: yaml 1.9 1.8
Priority: Major Major
Reporter: Postmodern
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to