isodoc 3.6.8 → 3.6.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b07df77d0c450a6adddc1293862322163f6ffb3f246e9ac55d515819103d5be7
4
- data.tar.gz: 8e947d47e803c897b4b8e48586a0ea7ed7a27ce12e45d20ee86994c1d9bd9787
3
+ metadata.gz: 9c9a285bb7c95b39b1f1cc20738a296abfc452f1f1770bdf06671692acacf19a
4
+ data.tar.gz: 0f3d972b4de83f203291dcece604258461427d14e675710999ede6d04bf8a236
5
5
  SHA512:
6
- metadata.gz: 7058ac04b39b7aa51defd038aa73ba5d8d77960de3e0c1bc6825463537b30d98478370aae77a1c40e21442c34c5a8ddd2171ef63c63cfcd0d22058e9cb11766a
7
- data.tar.gz: 775e805c7175a849175f5970971d635c1a8b6973e15e2db09110dd3b9c5efec33f0fd1bc6c73b1cb20624f1fa0dc3d6f7e666dd4fa145644fa966fe9252c0d1c
6
+ metadata.gz: 8de8909594aef1acfd6f2ed1fc95fe612865f66bdaa9084f31afaf8c5621b8fce713bb1e34a89457223dc5d641d27d50b459b188b661d3a9fa79b783c750c414
7
+ data.tar.gz: 1c61092b52d4e26410c279fa7fb125c7918e9842803dbc144d6552b56c9f2b8a4e5a3f05ddd0e716aca3108f93acb7c106f7b941917db0966196ab48ba5c6b38
@@ -50,11 +50,11 @@ module IsoDoc
50
50
  # @class (metanorma/metanorma-pdfa#33). A non-plain table -- including one
51
51
  # carrying a custom class, or the internal modspec variant -- keeps the
52
52
  # ISO borders. The internal `rouge-line-table` (sourcecode line numbering)
53
- # is the exception: like %plain it is mutually exclusive with MsoISOTable
54
- # and takes no ISO border additions.
53
+ # and `dl` (a definition list rendered as a table) are exceptions: like
54
+ # %plain they are unbordered and mutually exclusive with MsoISOTable.
55
55
  def bordered_table_style(node, klass = nil)
56
56
  node["plain"] == "true" and return ""
57
- klass == "rouge-line-table" and return ""
57
+ %w(rouge-line-table dl).include?(klass) and return ""
58
58
  "border-width:1px;border-spacing:0;"
59
59
  end
60
60
 
@@ -1,3 +1,3 @@
1
1
  module IsoDoc
2
- VERSION = "3.6.8".freeze
2
+ VERSION = "3.6.9".freeze
3
3
  end
@@ -94,13 +94,18 @@ module IsoDoc
94
94
  # survives. metanorma/metanorma-pdfa#33
95
95
  def table_border_css(node)
96
96
  style = "border-spacing:0;border-width:1px;"
97
- node["style"] || node["plain"] == "true" and style = ""
97
+ node["style"] || node["plain"] == "true" ||
98
+ node["class"] == "dl" and style = ""
98
99
  node["class"] == "rouge-line-table" and style = nil
99
100
  style
100
101
  end
101
102
 
103
+ # `dl` (definition list rendered as a table) is unbordered like %plain, and
104
+ # takes the plain MsoNormalTable Word style rather than the bordered
105
+ # MsoISOTable.
102
106
  def table_class(node)
103
- node["plain"] == "true" and return "MsoNormalTable"
107
+ node["plain"] == "true" || node["class"] == "dl" and
108
+ return "MsoNormalTable"
104
109
  node.text.length > 4000 ? "MsoISOTableBig" : "MsoISOTable"
105
110
  end
106
111
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isodoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.8
4
+ version: 3.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.