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 +4 -4
- data/lib/isodoc/function/table.rb +3 -3
- data/lib/isodoc/version.rb +1 -1
- data/lib/isodoc/word_function/table.rb +7 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9c9a285bb7c95b39b1f1cc20738a296abfc452f1f1770bdf06671692acacf19a
|
|
4
|
+
data.tar.gz: 0f3d972b4de83f203291dcece604258461427d14e675710999ede6d04bf8a236
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
#
|
|
54
|
-
# and
|
|
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
|
-
|
|
57
|
+
%w(rouge-line-table dl).include?(klass) and return ""
|
|
58
58
|
"border-width:1px;border-spacing:0;"
|
|
59
59
|
end
|
|
60
60
|
|
data/lib/isodoc/version.rb
CHANGED
|
@@ -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"
|
|
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"
|
|
107
|
+
node["plain"] == "true" || node["class"] == "dl" and
|
|
108
|
+
return "MsoNormalTable"
|
|
104
109
|
node.text.length > 4000 ? "MsoISOTableBig" : "MsoISOTable"
|
|
105
110
|
end
|
|
106
111
|
|