AoBane 0.1.16 → 0.1.17

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.
data/lib/AoBane.rb CHANGED
@@ -52,8 +52,8 @@ require 'math_ml/string'
52
52
 
53
53
 
54
54
  module AoBane
55
- VERSION = '0.1.16'
56
- VERSION_NUMBER = 0.0116
55
+ VERSION = '0.1.17'
56
+ VERSION_NUMBER = 0.0117
57
57
  RELEASE_DATE = '2013-05-07'
58
58
  VERSION_LABEL = "#{VERSION} (#{RELEASE_DATE})"
59
59
 
@@ -156,7 +156,7 @@ def preProcFence(text,startPoint)
156
156
  output = []
157
157
  dup = []
158
158
  isInFence = [false]
159
- linePointer = 0
159
+ isInPre = false
160
160
  exclude = '(?!^\|_+|\|\-:)^\||^[#]{1,6}\s|^\s+\*|^\s+\-'
161
161
  if !text.instance_of?(Array) then output = text.split("\n") else output = text end
162
162
 
@@ -182,8 +182,14 @@ def preProcFence(text,startPoint)
182
182
  else
183
183
  if line == "" then
184
184
  dup << '<br />'
185
- else
186
- dup.last << compressWSpaces(line)
185
+ else
186
+ if line =~ /<pre>|<\/pre>/ || isInPre then
187
+ isInPre = true
188
+ dup << line
189
+ if line =~ /<\/pre>/ then isInPre = false end
190
+ else
191
+ dup.last << compressWSpaces(line)
192
+ end
187
193
  next
188
194
  end
189
195
  end
@@ -1,3 +1,3 @@
1
1
  module AoBane
2
- VERSION = "0.1.16"
2
+ VERSION = "0.1.17"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: AoBane
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: