[#68137] improve semantics of manpages — "Anthony J. Bentley" <anthony@...>
Hi,
1 message
2015/02/17
[#68144] Re: Future of test suites for Ruby — Anthony Crumley <anthony.crumley@...>
FYI...
4 messages
2015/02/17
[#68343] [Ruby trunk - Bug #10916] [Open] What the Ruby? SegFault? — ruby@...
Issue #10916 has been reported by why do i need this acct just to create a bug report.
5 messages
2015/02/27
[#68373] Re: [Ruby trunk - Bug #10916] [Open] What the Ruby? SegFault?
— "Martin J. Dürst" <duerst@...>
2015/03/02
> * Author: why do i need this acct just to create a bug report
[#68358] [Ruby trunk - Bug #10902] require("enumerator") scans LOAD_PATH 2x on every invocation — [email protected]
Issue #10902 has been updated by Aman Gupta.
3 messages
2015/02/28
[ruby-core:68161] [Ruby trunk - Bug #10864] [Open] REXML adds white space to text property when indent > -1
From:
alex@...
Date:
2015-02-17 23:35:50 UTC
List:
ruby-core #68161
Issue #10864 has been reported by Alex McLain.
----------------------------------------
Bug #10864: REXML adds white space to text property when indent > -1
https://bugs.ruby-lang.org/issues/10864
* Author: Alex McLain
* Status: Open
* Priority: Normal
* Assignee:
* ruby -v: ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
The following example shows that REXML is adding white space to the text property of elements when setting the :indent option on Document#write greater than -1. The value written should be the same value read.
~~~ruby
require 'rexml/document'
xml_string = ''
REXML::Document.new(xml_string).tap do |doc|
doc.add_element('root').tap do |root|
write_text = 'bar'
puts "Write Text: #{write_text.inspect}"
root.add_element('foo').text = write_text
end
doc.write output: xml_string, indent: 4
end
REXML::Document.new(xml_string).tap do |doc|
read_text = doc.elements['/root/foo'].first
puts "Read Text: #{read_text.inspect}"
end
puts "XML String:"
puts xml_string
~~~
~~~text
Write Text: "bar"
Read Text: "\n bar\n "
XML String:
<root>
<foo>
bar
</foo>
</root>
~~~
--
https://bugs.ruby-lang.org/