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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 736f598c8a9924a22e2474b2380a229a49188b9fab567280a167cc187554fdb0
4
- data.tar.gz: 01de6d73cd7352ff0d6dfbf201b25e7eeb219f6f213dbb8d4c7e05bca40e5b6b
3
+ metadata.gz: c95f6f9b4e2611cd1418fd4f4b67b98b048b1821510af354fe1290bcf57e009e
4
+ data.tar.gz: 35ce02b5dbc2558937cf4378e6b426b42f988d313d09f372c688599322dacdf1
5
5
  SHA512:
6
- metadata.gz: faab27a9d122bde77325b295e1d9f705edd314cb9a7abd2cdff8b5e08fd9cdc43333c879e8e7c7e7dd1c7ba9e702457ef683372c890726739f46fc002ee26f3e
7
- data.tar.gz: 0c289d9a797771c43be62059cf0b08f4a0730ca637400c2e38aedd2285c193cf1c6ce44763b1a4c6c33335200c00351982ff46002fd60cd5c5e194444b8798b6
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
- ### 11.0.0 (2021-10-29)
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.eol }
70
+ eol.text_value.count("\n").times { b.br }
71
71
  end
72
72
  end
73
73
  end
@@ -409,7 +409,7 @@
409
409
  <xsl:text>__</xsl:text>
410
410
  </xsl:template>
411
411
 
412
- <xsl:template match="a:eol">
412
+ <xsl:template match="a:eol | a:br">
413
413
  <xsl:text>&#10;</xsl:text>
414
414
  </xsl:template>
415
415
 
data/lib/slaw/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Slaw
2
- VERSION = "11.0.0"
2
+ VERSION = "12.0.0"
3
3
  end
@@ -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<eol/>baz</p>
270
+ <p>foo<eol/>bar<br/>baz</p>
271
271
  </td>
272
272
  <td>
273
273
  <p>
274
- one<eol/>two<eol/>three
274
+ one<br/>two<eol/>three
275
275
 
276
276
  </p>
277
277
  </td>
@@ -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<eol/>bar<eol/><eol/>baz</p>
154
+ <p>foo<br/>bar<br/><br/>baz</p>
155
155
  </td>
156
156
  <td>
157
- <p>one<eol/>two<eol/><eol/>three</p>
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<eol/>three</p>
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<eol/><remark status="editorial">[comment]</remark></p>
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: 11.0.0
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: 2021-11-03 00:00:00.000000000 Z
11
+ date: 2022-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake