metanorma-ogc 2.0.4 → 2.0.7

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: 1c203aacb7ff88cfd91d3572b59743f962d4df5d8c602dc056bc6e3b3daeb3cd
4
+ data.tar.gz: 5a0071efa21404e76b64a98ec6ff07b7b6a3f3252a03ef68e83144ebe69a62be
5
5
  SHA512:
6
- metadata.gz: 4465fc5ab6f9b7994c01db9c7f61f94e7c699c1120bd073e455a42947eb1c62e52ad9f7676f7a9eddbff1b1c11b6f460b19fd41761729176488ba6a22da3f477
7
- data.tar.gz: 9e4661b7d45f62b8bcf704ce5ede43462ce05aa3cfc5a5c3b0516480e95794b8c70ae61517bf3a1f73a8fe895f35c6929b790653670d2d73cceb5b82263035d8
6
+ metadata.gz: 07aeafd71ed996a103514871386fc9cef5660f4a296f115ffb9f3311f41d65af330498fd487109d505d623e207e04ba1d58d242798f09f8a0d0dd28844adfe0a
7
+ data.tar.gz: 00506d3ba16ca2b88bc497c02ee57e700236652d5ad146e6ec295f58d56f0eacef6362cef00b94f2c44e74f402e58448fc35e0238c609f9e56af962483cbfb88
@@ -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)