asciidoctor-autoterm 1.0.0 → 1.0.1
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/asciidoctor/autoterm/converter.rb +4 -1
- data/lib/asciidoctor/autoterm/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: 3bb4285b630df041e24ddd4866844a4199a3acaebeca0ea63655a4b6a5379d99
|
|
4
|
+
data.tar.gz: a97025d3d2e623ee29b1996ec7172df1d0b66fb6e33f4fcedb65b5bfd00e9026
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 334b47ea0b94a2a101811f42f73a9d0395f6bc41ee9d5be626a0b6422b391344321d5de7b969de0f111f31986b13ea090f9f914d78ceb7be085019a590527e92
|
|
7
|
+
data.tar.gz: 8e1f2512d127207c1a79b28f75279e0f9b992c999761d63a738b187c8f33d77a2e13c52e94b52b09176c587b3ecce29f85e20a10e1717b2f9c607e7584e62559
|
|
@@ -114,7 +114,10 @@ class TermIndex < Asciidoctor::Converter.for('pdf')
|
|
|
114
114
|
category.terms.each do |term_obj|
|
|
115
115
|
term_name = term_obj.name
|
|
116
116
|
|
|
117
|
-
|
|
117
|
+
# AsciiDoc's ((Full Term (Abbr))) indexterm syntax matches the FIRST ))
|
|
118
|
+
# encountered, so nested parens like (Abbr) lose their closing ).
|
|
119
|
+
# The regex matches (Abbr with or without a closing ) to handle both.
|
|
120
|
+
if term_name =~ /(.*?)\s+\(([^)]+)\)?$/
|
|
118
121
|
full_name = $1.strip
|
|
119
122
|
abbr = $2.strip
|
|
120
123
|
else
|