Project

General

Profile

Bug #8302

REXML::Text の entity_filter が有効でない

Added by ohai (Ippei Obayashi) almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
ruby 2.1.0dev (2013-04-20 trunk 40391) [x86_64-linux]
[ruby-dev:47278]

Description

REXML::Text の initialize や to_s のドキュメントによると、
添付したファイル(text_entity_filter.rb)を実行すると
"&f; &b;"
"foo &b;"
と出力されるはずですが、実際には
"&f; &b;"
"&f; &b;"
と出力されます。

添付したパッチで修正されると思います。

しかし、この機能は何に使うのでしょうか?


Files

text_entity_filter.rb (271 Bytes) text_entity_filter.rb ohai (Ippei Obayashi), 04/20/2013 05:29 PM
text_normalize.patch (544 Bytes) text_normalize.patch ohai (Ippei Obayashi), 04/20/2013 05:29 PM

Updated by hsbt (Hiroshi SHIBATA) almost 7 years ago

  • Assignee set to kou (Kouhei Sutou)
#2

Updated by kou (Kouhei Sutou) almost 7 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r40484.
Ippei, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • lib/rexml/text.rb (REXML::Text.normalize): Fix a bug that all entity filters are ignored. [ruby-dev:47278] [Bug #8302] Patch by Ippei Obayashi. Thanks!!!
  • test/rexml/test_entity.rb (EntityTester#test_entity_filter): Add a test of the above change.

Updated by kou (Kouhei Sutou) almost 7 years ago

テストを追加して取り込みました!
何に使うんでしょうねぇ。。。

Also available in: Atom PDF