polytexnic 1.9.0 → 1.9.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/Gemfile.lock +1 -1
- data/lib/polytexnic/postprocessors/html.rb +3 -1
- data/lib/polytexnic/version.rb +1 -1
- data/spec/to_html/characters_and_punctuation_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1b5dc960f818c0dd1342080a1d886582ecdd67a8ccf7688cae86e79c18309278
|
|
4
|
+
data.tar.gz: 24f2ce7be9a136c54aacab4a78d47ff17598182c8095038c95c6a215ab0c45f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e972fa4b84925ef11ac37e246184811bd5630ac3b6036f9609a67dd5816be0e04c53ea15db9e440571f596ad341e88316eeaf488137c61da8395503f0ea0fba1
|
|
7
|
+
data.tar.gz: 1140d6a5159c5c166a8eb3c7db75882a93782b976721e1bac76a7c29439a702a76c1cfcbdc33166090c53adcb2b013663e55a63fb5849147621516a697149c09
|
data/Gemfile.lock
CHANGED
|
@@ -419,8 +419,10 @@ module Polytexnic
|
|
|
419
419
|
node.add_next_sibling(space)
|
|
420
420
|
end
|
|
421
421
|
# Remove spurious intersentence space from mid-sentence notes.
|
|
422
|
+
closing_paren = after && after.content[0] == ")"
|
|
422
423
|
next_sibling = node.next_sibling
|
|
423
|
-
if !end_of_sentence
|
|
424
|
+
if ((!end_of_sentence || closing_paren) &&
|
|
425
|
+
intersentence_space?(next_sibling))
|
|
424
426
|
next_sibling.remove
|
|
425
427
|
end
|
|
426
428
|
end
|
data/lib/polytexnic/version.rb
CHANGED
|
@@ -139,6 +139,12 @@ describe 'Polytexnic::Pipeline#to_html' do
|
|
|
139
139
|
it { should_not include 'intersentencespace' }
|
|
140
140
|
end
|
|
141
141
|
|
|
142
|
+
context "with parens after a footnote" do
|
|
143
|
+
let(:polytex) { '(Lorem ipsum.\footnote{From \emph{Cicero}.}) Next' }
|
|
144
|
+
it { should include 'ipsum' }
|
|
145
|
+
it { should_not include 'intersentencespace' }
|
|
146
|
+
end
|
|
147
|
+
|
|
142
148
|
context "with only a newline" do
|
|
143
149
|
let(:polytex) { "Lorem ipsum.\nDolor sit amet." }
|
|
144
150
|
it { should resemble "Lorem ipsum.#{intsp} Dolor sit amet." }
|
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.9.
|
|
4
|
+
version: 1.9.1
|
|
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: 2023-08-
|
|
12
|
+
date: 2023-08-20 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: nokogiri
|