metanorma-utils 1.8.0 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/utils/linestatus.rb +4 -3
- data/lib/utils/version.rb +1 -1
- 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: 3641e3026c18fb0b8b8c8633f25be116510f79d34fe735a3453d45bba006a877
|
4
|
+
data.tar.gz: 834725d985d97af9aa1aca65213f1c9515187c978f3f5b87e06aca866d375702
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcc0a8eda513f8a8990180a081aabe8651579f719b2ff4b13e5880d421d5374117b872df13cea1948f35c510b625cb583b06e4fabe88b1b760a032a95285d0bc
|
7
|
+
data.tar.gz: e16f7a8fa041f690045de853465daf068fef217979d7d2b2ef3a78e9efadb9624546c4d805fd3eea10f542f5e40533a3e78ca04d1c70153a0edd3f2312515ddb
|
data/lib/utils/linestatus.rb
CHANGED
@@ -28,8 +28,9 @@ module Metanorma
|
|
28
28
|
if @middoc_docattr && !/^:[^ :]+:($| )/.match?(text)
|
29
29
|
@middoc_docattr = false
|
30
30
|
@pass = false
|
31
|
-
elsif (@is_delim && /^(
|
32
|
-
(!@is_delim && !@delimln &&
|
31
|
+
elsif (@is_delim && /^(--+|\*\*+|==+|__+)$/.match?(text)) ||
|
32
|
+
(!@is_delim && !@delimln && /^-----*$|^\.\.\.\.\.*$|\/\/\/\/\/*$/
|
33
|
+
.match?(text))
|
33
34
|
@delimln = text
|
34
35
|
@pass = true
|
35
36
|
elsif @pass_delim
|
@@ -43,7 +44,7 @@ module Metanorma
|
|
43
44
|
@pass = true
|
44
45
|
@middoc_docattr = true
|
45
46
|
end
|
46
|
-
@is_delim = /^\[(source|listing|literal|pass)\b/.match?(text)
|
47
|
+
@is_delim = /^\[(source|listing|literal|pass|comment)\b/.match?(text)
|
47
48
|
@pass_delim = /^\[(pass)\b/.match?(text)
|
48
49
|
@prev_line = text.strip
|
49
50
|
end
|
data/lib/utils/version.rb
CHANGED