polytexnic 1.5.9 → 1.5.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a6e8a8c3d448261249e87d26ab7112dd7e1b62486f73b29e6a86d6ccc25bf5e
4
- data.tar.gz: dfda5f1da4f604670aaa732698a6e7ea4aca357e74fd6c8a5740919644fee532
3
+ metadata.gz: dfe26c4c48f6d2b37be2d6b88ecaab5f9f824525c2823c38f0beaeb0d39df9c7
4
+ data.tar.gz: 9acf5c68517e741c781eeab8b60098183ed12f411c9223124c7d06a52d15971f
5
5
  SHA512:
6
- metadata.gz: 21b6cff9ae8c279d03ec7ae4ec849038583e3074809068165f8b384f938b943effc09bea4c1cd62446337baf34577bf1823eac34557ea2843d6d5f81b5b2555b
7
- data.tar.gz: 42f4c66b47b8ec7f35e27c076c6af424886451f3502991c736983af55c87203e75272cebabde43cfab26858d8a8077eb295923af0e2a923a2c676fbdd2038a66
6
+ metadata.gz: 2d420185ea890f21da2dab06f03d36513734ccc5fb8169e4641648a8f01b688f2166df6d5b234098c23dc420c62c5f7766141e6c890b84f06e0eea9e7d767a70
7
+ data.tar.gz: d5e8a7eb19fb8f0cab3d75e83819843190cb24f18b2411049eba68efefc1bc56be89f6f88056989850569f92fc240ddbf834762d39592ce576ff0ee2d9d35677
@@ -1290,6 +1290,7 @@ module Polytexnic
1290
1290
  def restore_figure_quotes!(string)
1291
1291
  figure_quote_cache.each do |key, html|
1292
1292
  string.gsub!(/<p>\s*#{key}\s*<\/p>/m, html)
1293
+ string.gsub!(/<p class="noindent">\s*#{key}\s*<\/p>/m, html)
1293
1294
  end
1294
1295
  end
1295
1296
 
@@ -1,3 +1,3 @@
1
1
  module Polytexnic
2
- VERSION = "1.5.9"
2
+ VERSION = "1.5.10"
3
3
  end
@@ -70,6 +70,35 @@ describe 'Polytexnic::Pipeline#to_html' do
70
70
  end
71
71
  it { should_not include('noindent') }
72
72
  end
73
+
74
+ context "inside a figure" do
75
+ let(:polytex) do <<-'EOS'
76
+ \chapter{Manipulating files}
77
+ \label{cha:manipulating_files}
78
+
79
+ \begin{figure}
80
+ \begin{quote}
81
+ FRom faireſt creatures we deſire increaſe, \\
82
+ That thereby beauties \emph{Roſe} might neuer die, \\
83
+ But as the riper ſhould by time deceaſe, \\
84
+ His tender heire might beare his memory: \\
85
+ But thou contracted to thine owne bright eyes, \\
86
+ Feed'ſt thy lights flame with ſelfe ſubſtantiall fewell, \\
87
+ Making a famine where aboundance lies, \\
88
+ Thy ſelfe thy foe,to thy ſweet ſelfe too cruell: \\
89
+ Thou that art now the worlds freſh ornament, \\
90
+ And only herauld to the gaudy ſpring, \\
91
+ Within thine owne bud burieſt thy content, \\
92
+ And tender chorle makſt waſt in niggarding: \\
93
+ \quad Pitty the world,or elſe this glutton be, \\
94
+ \quad To eate the worlds due,by the graue and thee.\\
95
+ \end{quote}
96
+ \caption{A copy-and-pastable version of Shakespeare's first sonnet (\href{https://en.wikipedia.org/wiki/Cf.}{\emph{cf.}}\ Figure~\ref{fig:sonnet_1}).\label{fig:copy_paste_sonnet_1}}
97
+ \end{figure}
98
+ EOS
99
+ end
100
+ it { should include('ſubſtantiall') }
101
+ end
73
102
  end
74
103
 
75
104
  describe '\verse' do
@@ -95,4 +124,4 @@ describe 'Polytexnic::Pipeline#to_html' do
95
124
  end
96
125
  end
97
126
  end
98
- end
127
+ end
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.5.9
4
+ version: 1.5.10
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: 2019-04-18 00:00:00.000000000 Z
12
+ date: 2019-04-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri