koara-html 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03165f0aca539beb2051d1b1df6a4f43864f1d5d
4
- data.tar.gz: 51ab7ad99d06f8f2bb38db38784ff845a223823d
3
+ metadata.gz: 02ebb08b95d1da308309f5717b39479b63ff80c0
4
+ data.tar.gz: fc16e33d4a9c6ecb8be06db555a270db7abba6ef
5
5
  SHA512:
6
- metadata.gz: d5028fd0cbec0bae20aaf798077e71ce614b8a4ca2c58875540ef331626a2d46e5297e8734697a582eae8b823087383b13eafb8f0b0f3cb490ce271b71b1661f
7
- data.tar.gz: 03d407cd978410d5ef30ddfea7789632d1546a19c6adb007e2598a6c6652898a7ab2ccb0cd4634f4b0abf4667d45409ad17a31c1db95530170d3714e3e874839
6
+ metadata.gz: 2ac2552515a083be2dadc5970b402eacadae6424515a87b0606da2cf1661140af0a3143313a3c219e1a6dc2c58452db2198bb2360486f77ebd90622bcbad6e9b
7
+ data.tar.gz: e61f9823ee8398fec1a8b98da0bb8ed2939073cba545e5259287e94950ac835b7d3e11b864742190a11d8dae0e3b1fb30a04481ffedaa7ec1786a209eacc0d48
data/Gemfile CHANGED
@@ -1,5 +1,6 @@
1
1
  source "https://rubygems.org/"
2
2
 
3
- gem "koara", "~>0.12.0"
3
+ gem "koara", "~>0.13.0"
4
+ gem 'coveralls', '0.8.13', require: false
4
5
 
5
6
  gemspec
@@ -3,6 +3,6 @@ require 'koara/html/html5renderer'
3
3
 
4
4
  module Koara
5
5
  module Html
6
- VERSION = "0.12.0"
6
+ VERSION = '0.13.0'
7
7
  end
8
8
  end
@@ -12,6 +12,7 @@ module Koara
12
12
  @level = 0
13
13
  @list_sequence = Array.new
14
14
  @out = StringIO.new
15
+ @hard_wrap = false
15
16
  node.children_accept(self)
16
17
  end
17
18
 
@@ -155,7 +156,10 @@ module Koara
155
156
  end
156
157
 
157
158
  def visit_linebreak(node)
158
- @out << "<br>\n" + indent
159
+ if @hard_wrap || node.explicit
160
+ @out << "<br>"
161
+ end
162
+ @out << "\n" + indent
159
163
  node.children_accept(self)
160
164
  end
161
165
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: koara-html
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Van Den Heuvel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-01 00:00:00.000000000 Z
11
+ date: 2016-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake