Skip to content

Commit

Permalink
note newline behavior in 2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pcai authored Feb 13, 2024
1 parent 35b9599 commit af36ee6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@
# 2.5.0 (2015-03-31)

* Formally drop support for ruby 1.8.7. Installing Nori from rubygems for that version should no longer attempt to install versions that will not work.
* BREAKING CHANGE: Newlines are now preserved when present in the value of inner text nodes. See the example below:

before:

```
Nori.new.parse("<outer>\n&lt;embedded&gt;\n&lt;one&gt;&lt;/one&gt;\n&lt;two&gt;&lt;/two&gt;\n&lt;embedded&gt;\n</outer>")
=> {"outer"=>"<embedded><one></one><two></two><embedded>"}
```

after:
```
Nori.new.parse("<outer>\n&lt;embedded&gt;\n&lt;one&gt;&lt;/one&gt;\n&lt;two&gt;&lt;/two&gt;\n&lt;embedded&gt;\n</outer>")
=> {"outer"=>"<embedded>\n<one></one>\n<two></two>\n<embedded>\n"}
```

# 2.4.0 (2014-04-19)

Expand Down

0 comments on commit af36ee6

Please sign in to comment.