slaw 1.0.0.alpha.2 → 1.0.0.alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/slaw/grammars/pl/act_nodes.rb +2 -2
- data/lib/slaw/version.rb +1 -1
- data/spec/pl/act_block_spec.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31ca69bdfe68c0e688320a033b63bc319dd3494e
|
4
|
+
data.tar.gz: 95abf4fbf34526c2497f87413bfb1a9bc0229e4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccab43b362cd4eb771a5eeed3700b24ef7cc957f6f13144e461e79907518206f630c256fe442259224ddf76c02985743bedf1be6686a118a3ff97f909d1a4e80
|
7
|
+
data.tar.gz: 192cad74ecbc0c26335b2eda024ff7f206171f32fdfb4c6823212744f4aca463f21d97878e5f718ab2695ce9d37784bf1bdd4ec2cd494fd3a3daa0d32d2443e4
|
@@ -328,10 +328,10 @@ module Slaw
|
|
328
328
|
|
329
329
|
class BlockParagraph < Treetop::Runtime::SyntaxNode
|
330
330
|
def to_xml(b, idprefix='', i=0)
|
331
|
-
id = "#{idprefix}
|
331
|
+
id = "#{idprefix}subparagraph-0"
|
332
332
|
idprefix = id + "."
|
333
333
|
|
334
|
-
b.
|
334
|
+
b.subparagraph(id: id) { |b|
|
335
335
|
b.content { |b|
|
336
336
|
elements.each_with_index { |e, i| e.to_xml(b, idprefix, i) }
|
337
337
|
}
|
data/lib/slaw/version.rb
CHANGED
data/spec/pl/act_block_spec.rb
CHANGED
@@ -53,11 +53,11 @@ EOS
|
|
53
53
|
to_xml(node).should == '<body>
|
54
54
|
<division id="division-I">
|
55
55
|
<num>I</num>
|
56
|
-
<
|
56
|
+
<subparagraph id="division-I.subparagraph-0">
|
57
57
|
<content>
|
58
58
|
<p>Projekt ustawy</p>
|
59
59
|
</content>
|
60
|
-
</
|
60
|
+
</subparagraph>
|
61
61
|
<chapter id="chapter-7">
|
62
62
|
<num>7</num>
|
63
63
|
<heading>Oznaczanie przepisów ustawy i ich systematyzacja</heading>
|
@@ -378,11 +378,11 @@ EOS
|
|
378
378
|
<intro>
|
379
379
|
<p>Podstawową jednostką redakcyjną ustawy jest artykuł.</p>
|
380
380
|
</intro>
|
381
|
-
<
|
381
|
+
<subparagraph id="section-54.subparagraph-0">
|
382
382
|
<content>
|
383
383
|
<p>Something here</p>
|
384
384
|
</content>
|
385
|
-
</
|
385
|
+
</subparagraph>
|
386
386
|
<point id="section-54.point-1">
|
387
387
|
<num>1)</num>
|
388
388
|
<content>
|