polytexnic 0.9.1 → 0.9.2
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/polytexnic/utils.rb +3 -2
- data/lib/polytexnic/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1f22f8b4aae8ee0c5113a2c86293dbd98a9914d1
|
|
4
|
+
data.tar.gz: fea9483cb2ecde2f494516d5f310f0be77ade536
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 32b6dfd32c84392609bda29210f99ea11b1aa9d457fee7f1d0b6f6249e2d074a4ad821bca202588ce9bfadc6af6e0e0c8319d97cf5448e7e9113eb1b1247f95d
|
|
7
|
+
data.tar.gz: 54ae66c1b0a5c19be36e42f482471fff584bb2902af237eeccd1f8dfe9118d8d7ce002827459ba10a34e3a2462388cabd267612ab4e1ea927cbddfb033055aac
|
data/lib/polytexnic/utils.rb
CHANGED
|
@@ -146,12 +146,13 @@ module Polytexnic
|
|
|
146
146
|
end
|
|
147
147
|
end
|
|
148
148
|
|
|
149
|
-
# Highlight lines (i.e., with a yellow
|
|
149
|
+
# Highlight lines (i.e., with a yellow background).
|
|
150
150
|
# This is needed due to a Pygments bug that fails to highlight lines
|
|
151
151
|
# in the LaTeX output.
|
|
152
152
|
def highlight_lines(output, options)
|
|
153
153
|
highlighted_lines(options).each do |i|
|
|
154
|
-
output[i] = '\colorbox{hilightyellow}{' +
|
|
154
|
+
output[i] = '\setlength{\fboxsep}{0pt}\colorbox{hilightyellow}{' +
|
|
155
|
+
output[i] + '}'
|
|
155
156
|
end
|
|
156
157
|
end
|
|
157
158
|
|
data/lib/polytexnic/version.rb
CHANGED