metanorma-ogc 2.0.4 → 2.0.5

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: 8f96712a836ecd61ea5c7c706335c5f5ee895c819a3b65905a0f88b42ad63991
4
- data.tar.gz: a177b6bdfbf926afd1946f9891f8ae11f7763595cf73716d7e8457648e5b1d8a
3
+ metadata.gz: 056640c9b99f89ac5e10954d3902f72441ec971b2245724e15d47a7f65e20b62
4
+ data.tar.gz: 8dd6622cd5bdd70472865ce662e23a555db66f661d33f274bff9cb4b9a2d4742
5
5
  SHA512:
6
- metadata.gz: 4465fc5ab6f9b7994c01db9c7f61f94e7c699c1120bd073e455a42947eb1c62e52ad9f7676f7a9eddbff1b1c11b6f460b19fd41761729176488ba6a22da3f477
7
- data.tar.gz: 9e4661b7d45f62b8bcf704ce5ede43462ce05aa3cfc5a5c3b0516480e95794b8c70ae61517bf3a1f73a8fe895f35c6929b790653670d2d73cceb5b82263035d8
6
+ metadata.gz: 68082bdefeadf5e0be4ac14485c32ee8514788c1734ec10ddab4c449f5d454014834311290a7837002b7022f73811e24ab1ddc66ac8475899357c2a2f7d54b69
7
+ data.tar.gz: da8f7bc31006422fa95fc20b99392fe218ef18d9c7335c0d929c2437ed0d438678644e5e200f7c2e7de6ab262d5579dcbf5f857d2cbba0840453817554d42396
@@ -117,11 +117,11 @@ module IsoDoc
117
117
  ret
118
118
  end
119
119
 
120
- def make_tr_attr(td, row, totalrows, header)
120
+ def make_tr_attr(cell, row, totalrows, header)
121
121
  ret = super
122
- if td.at("./ancestor::xmlns:table[@class = 'recommendation'] | "\
123
- "./ancestor::xmlns:table[@class = 'requirement'] | "\
124
- "./ancestor::xmlns:table[@class = 'permission']")
122
+ if cell.at("./ancestor::xmlns:table[@class = 'recommendation'] | "\
123
+ "./ancestor::xmlns:table[@class = 'requirement'] | "\
124
+ "./ancestor::xmlns:table[@class = 'permission']")
125
125
  ret[:style] = "vertical-align:top;"
126
126
  ret[:class] = "recommend"
127
127
  end
@@ -6,7 +6,6 @@ require_relative "metadata"
6
6
 
7
7
  module IsoDoc
8
8
  module Ogc
9
-
10
9
  # A {Converter} implementation that generates HTML output, and a document
11
10
  # schema encapsulation of the document for validation
12
11
  #
@@ -16,7 +15,7 @@ module IsoDoc
16
15
  super
17
16
  end
18
17
 
19
- def default_fonts(options)
18
+ def default_fonts(_options)
20
19
  {
21
20
  bodyfont: '"Overpass",sans-serif',
22
21
  headerfont: '"Overpass",sans-serif',
@@ -37,9 +36,9 @@ module IsoDoc
37
36
 
38
37
  def googlefonts
39
38
  <<~HEAD.freeze
40
- <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i|Space+Mono:400,700" rel="stylesheet" />
41
- <link href="https://fonts.googleapis.com/css?family=Overpass:300,300i,600,900" rel="stylesheet">
42
- <link href="https://fonts.googleapis.com/css?family=Teko:300,400,500" rel="stylesheet">
39
+ <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i|Space+Mono:400,700" rel="stylesheet" />
40
+ <link href="https://fonts.googleapis.com/css?family=Overpass:300,300i,600,900" rel="stylesheet">
41
+ <link href="https://fonts.googleapis.com/css?family=Teko:300,400,500" rel="stylesheet">
43
42
  HEAD
44
43
  end
45
44
 
@@ -53,7 +52,8 @@ module IsoDoc
53
52
  end
54
53
 
55
54
  def make_body(xml, docxml)
56
- body_attr = { lang: "EN-US", link: "blue", vlink: "#954F72", "xml:lang": "EN-US", class: "container" }
55
+ body_attr = { lang: "EN-US", link: "blue", vlink: "#954F72",
56
+ "xml:lang": "EN-US", class: "container" }
57
57
  xml.body **body_attr do |body|
58
58
  make_body1(body, docxml)
59
59
  make_body2(body, docxml)