polytexnic 1.0.1 → 1.0.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/postprocessors/html.rb +1 -1
- data/lib/polytexnic/version.rb +1 -1
- data/spec/to_html/quotations_and_verse_spec.rb +12 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: df279f88dd6e422ea262d2e255b5b933dc223384
|
|
4
|
+
data.tar.gz: ced8e931e05b505565ce0b0b3fd6ae5decbac2c2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ade036c3345158c4712df8177944ef2ca263975dd5cbb0d2d2cfc126dd558e66854cb3f4d86f37fc4158c04b492f61ffc584006482432625f9c1ee9511dcf7e8
|
|
7
|
+
data.tar.gz: 93d91db198dbfe33f303d9c7d16a27a98e7a8123f5e426696db679665129e1aa27a3a64e97891aa4f5a62b4df0e2e26eca01015ab061d027af526407a59f4616
|
|
@@ -416,7 +416,7 @@ module Polytexnic
|
|
|
416
416
|
# Handles \begin{quote} ... \end{quote}.
|
|
417
417
|
def quote(doc)
|
|
418
418
|
doc.xpath('//p[@rend="quoted"]').each do |node|
|
|
419
|
-
clean_node node,
|
|
419
|
+
clean_node node, %w{rend noindent}
|
|
420
420
|
node.name = 'blockquote'
|
|
421
421
|
node['class'] = 'quote'
|
|
422
422
|
end
|
data/lib/polytexnic/version.rb
CHANGED
|
@@ -58,6 +58,18 @@ describe 'Polytexnic::Pipeline#to_html' do
|
|
|
58
58
|
EOS
|
|
59
59
|
end
|
|
60
60
|
end
|
|
61
|
+
|
|
62
|
+
context "with a leading noindent" do
|
|
63
|
+
let(:polytex) do <<-'EOS'
|
|
64
|
+
\section{Up and running}
|
|
65
|
+
|
|
66
|
+
\begin{quotation}
|
|
67
|
+
\noindent I think of Chapter 1 as the ``weeding out phase'' in law school
|
|
68
|
+
\end{quotation}
|
|
69
|
+
EOS
|
|
70
|
+
end
|
|
71
|
+
it { should_not include('noindent') }
|
|
72
|
+
end
|
|
61
73
|
end
|
|
62
74
|
|
|
63
75
|
describe '\verse' do
|
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.0.
|
|
4
|
+
version: 1.0.2
|
|
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-02-
|
|
12
|
+
date: 2015-02-11 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: nokogiri
|