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 +4 -4
- data/Gemfile +2 -1
- data/lib/koara/html.rb +1 -1
- data/lib/koara/html/html5renderer.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02ebb08b95d1da308309f5717b39479b63ff80c0
|
4
|
+
data.tar.gz: fc16e33d4a9c6ecb8be06db555a270db7abba6ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ac2552515a083be2dadc5970b402eacadae6424515a87b0606da2cf1661140af0a3143313a3c219e1a6dc2c58452db2198bb2360486f77ebd90622bcbad6e9b
|
7
|
+
data.tar.gz: e61f9823ee8398fec1a8b98da0bb8ed2939073cba545e5259287e94950ac835b7d3e11b864742190a11d8dae0e3b1fb30a04481ffedaa7ec1786a209eacc0d48
|
data/Gemfile
CHANGED
data/lib/koara/html.rb
CHANGED
@@ -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
|
-
@
|
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.
|
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-
|
11
|
+
date: 2016-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|