polytexnic 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d8a0e3879d0e276f8bbabd88041561c844f1579
|
4
|
+
data.tar.gz: ee6e0ba56c32487b01d1e2b93566ea409d0c2d80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5ba6824073010e0666a908b846ecf68e5a9dab829bee1063184bdba3f90c37044b369f8a889bdc487ca11c70316a1625214050d51b552eed48ae2ffa00211c1
|
7
|
+
data.tar.gz: 0884a8bfcb671fb813d2b6ebfaeb278f0d313cfb86d7a2cd4ca703a9e36a6ad626704732f9427170a0f960f9edfa30da248b9eed13fc009f1b7978e265a9ed1d
|
@@ -475,6 +475,12 @@ module Polytexnic
|
|
475
475
|
node.name = 'blockquote'
|
476
476
|
node['class'] = 'quote'
|
477
477
|
end
|
478
|
+
|
479
|
+
# Put a class on each paragraph.
|
480
|
+
# This is needed to style them for Kindle for iPad.
|
481
|
+
doc.css('blockquote p').each do |node|
|
482
|
+
node['class'] = 'quote'
|
483
|
+
end
|
478
484
|
end
|
479
485
|
|
480
486
|
# Handles \begin{verse} ... \end{verse}.
|
data/lib/polytexnic/version.rb
CHANGED
@@ -26,8 +26,8 @@ describe 'Polytexnic::Pipeline#to_html' do
|
|
26
26
|
it do
|
27
27
|
should resemble <<-'EOS'
|
28
28
|
<blockquote class="quotation">
|
29
|
-
<p>lorem ipsum</p>
|
30
|
-
<p>dolor sit amet</p>
|
29
|
+
<p class="quote">lorem ipsum</p>
|
30
|
+
<p class="quote">dolor sit amet</p>
|
31
31
|
</blockquote>
|
32
32
|
EOS
|
33
33
|
end
|
@@ -49,11 +49,11 @@ describe 'Polytexnic::Pipeline#to_html' do
|
|
49
49
|
it do
|
50
50
|
should resemble <<-'EOS'
|
51
51
|
<blockquote class="quotation">
|
52
|
-
<p>lorem ipsum</p>
|
52
|
+
<p class="quote">lorem ipsum</p>
|
53
53
|
<blockquote class="quotation">
|
54
|
-
<p>foo bar</p>
|
54
|
+
<p class="quote">foo bar</p>
|
55
55
|
</blockquote>
|
56
|
-
<p>dolor sit amet</p>
|
56
|
+
<p class="quote">dolor sit amet</p>
|
57
57
|
</blockquote>
|
58
58
|
EOS
|
59
59
|
end
|
@@ -61,7 +61,7 @@ describe 'Polytexnic::Pipeline#to_html' do
|
|
61
61
|
|
62
62
|
context "with a leading noindent" do
|
63
63
|
let(:polytex) do <<-'EOS'
|
64
|
-
\section{Up and running}
|
64
|
+
\section{Up and running}
|
65
65
|
|
66
66
|
\begin{quotation}
|
67
67
|
\noindent I think of Chapter 1 as the ``weeding out phase'' in law school
|
@@ -88,7 +88,7 @@ describe 'Polytexnic::Pipeline#to_html' do
|
|
88
88
|
it do
|
89
89
|
should resemble <<-'EOS'
|
90
90
|
<blockquote class="verse">
|
91
|
-
<p>lorem ipsum<span class="break"></span>
|
91
|
+
<p class="quote">lorem ipsum<span class="break"></span>
|
92
92
|
dolor sit amet</p>
|
93
93
|
</blockquote>
|
94
94
|
EOS
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polytexnic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Hartl
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-07-
|
12
|
+
date: 2015-07-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|