slaw 11.0.0 → 12.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/lib/slaw/grammars/tables_nodes.rb +1 -1
- data/lib/slaw/grammars/za/act_text.xsl +1 -1
- data/lib/slaw/version.rb +1 -1
- data/spec/generator_spec.rb +3 -3
- data/spec/za/act_table_spec.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c95f6f9b4e2611cd1418fd4f4b67b98b048b1821510af354fe1290bcf57e009e
|
4
|
+
data.tar.gz: 35ce02b5dbc2558937cf4378e6b426b42f988d313d09f372c688599322dacdf1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 718ce963ef974c024a63d8b0c69d363cd260d34562d426cbc1779be76300380f9e9c06e1865a8598003853a847cb422ab90ca9c8962c3ed39c3189bdc3755429
|
7
|
+
data.tar.gz: 8770a53d488cfc624a563cdadf9f4c0c091d440a1f3920f290ce2f7abb8cfea2f8fd4e7e0931e8c81a287c6c46cf0a5c0a0a03dd7e39429009ebe1c0074a58c4
|
data/README.md
CHANGED
@@ -86,7 +86,11 @@ You can create your own grammar by creating a gem that provides these files and
|
|
86
86
|
|
87
87
|
## Changelog
|
88
88
|
|
89
|
-
###
|
89
|
+
### 12.0.0 (31 January 2022)
|
90
|
+
|
91
|
+
* Use `<br/>` for newlines in tables, rather than `<eol/>`, since it's more semantically correct.
|
92
|
+
|
93
|
+
### 11.0.0 (29 October 2021)
|
90
94
|
|
91
95
|
* Prefix eId attributes in attachments with attachement's eId
|
92
96
|
* Use crossHeading element for crossheadings
|
@@ -67,7 +67,7 @@ module Slaw
|
|
67
67
|
# for the first line, eat whitespace at the start
|
68
68
|
# for the last line, eat whitespace at the end
|
69
69
|
if not tail and (i > 0 or not inline_items.empty?)
|
70
|
-
eol.text_value.count("\n").times { b.
|
70
|
+
eol.text_value.count("\n").times { b.br }
|
71
71
|
end
|
72
72
|
end
|
73
73
|
end
|
data/lib/slaw/version.rb
CHANGED
data/spec/generator_spec.rb
CHANGED
@@ -261,17 +261,17 @@ Hello __underlined__.
|
|
261
261
|
'
|
262
262
|
end
|
263
263
|
|
264
|
-
it 'should replace eol with newlines in tables' do
|
264
|
+
it 'should replace eol and br with newlines in tables' do
|
265
265
|
doc = xml2doc(section(<<XML
|
266
266
|
<num>1.</num>
|
267
267
|
<table eId="sec__21_table_1">
|
268
268
|
<tr>
|
269
269
|
<td>
|
270
|
-
<p>foo<eol/>bar<
|
270
|
+
<p>foo<eol/>bar<br/>baz</p>
|
271
271
|
</td>
|
272
272
|
<td>
|
273
273
|
<p>
|
274
|
-
one<
|
274
|
+
one<br/>two<eol/>three
|
275
275
|
|
276
276
|
</p>
|
277
277
|
</td>
|
data/spec/za/act_table_spec.rb
CHANGED
@@ -151,10 +151,10 @@ EOS
|
|
151
151
|
to_xml(node, "prefix__").should == '<table eId="prefix__table_1">
|
152
152
|
<tr>
|
153
153
|
<td>
|
154
|
-
<p>foo<
|
154
|
+
<p>foo<br/>bar<br/><br/>baz</p>
|
155
155
|
</td>
|
156
156
|
<td>
|
157
|
-
<p>one<
|
157
|
+
<p>one<br/>two<br/><br/>three</p>
|
158
158
|
</td>
|
159
159
|
<td>
|
160
160
|
<p>four</p>
|
@@ -176,7 +176,7 @@ EOS
|
|
176
176
|
to_xml(node, "prefix__").should == '<table eId="prefix__table_1">
|
177
177
|
<tr>
|
178
178
|
<th>
|
179
|
-
<p>foo<
|
179
|
+
<p>foo<br/>three</p>
|
180
180
|
</th>
|
181
181
|
</tr>
|
182
182
|
<tr>
|
@@ -380,7 +380,7 @@ EOS
|
|
380
380
|
<p>a <ref href="/a/b">link</ref> in a table</p>
|
381
381
|
</td>
|
382
382
|
<td>
|
383
|
-
<p><ref href="/a/b">link</ref> and<
|
383
|
+
<p><ref href="/a/b">link</ref> and<br/><remark status="editorial">[comment]</remark></p>
|
384
384
|
</td>
|
385
385
|
</tr>
|
386
386
|
</table>'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slaw
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 12.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Greg Kempe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|