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 +2 -2
- data/lib/AoBane/utilities.rb +9 -3
- data/lib/AoBane/version.rb +1 -1
- metadata +1 -1
data/lib/AoBane.rb
CHANGED
data/lib/AoBane/utilities.rb
CHANGED
@@ -156,7 +156,7 @@ def preProcFence(text,startPoint)
|
|
156
156
|
output = []
|
157
157
|
dup = []
|
158
158
|
isInFence = [false]
|
159
|
-
|
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
|
-
|
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
|
data/lib/AoBane/version.rb
CHANGED