martile 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/martile.rb +3 -1
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 997c1e5db4f7dc46318233c3ab2aefd96c0ae8a3
|
4
|
+
data.tar.gz: 4026335dba1d276b0e9e62acb9e9de0ef614a31c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1485697a0c44b5db0999dee8e2cb666966b75d29d0bacb4ccfec05b34f17df38f0058cab74bdad882a94a1b9da9adf0c01fdfe3887e8a772d8e01bf5685fa098
|
7
|
+
data.tar.gz: 206a118949959af71518b4f701679088b2c98cf1ed737e776f3da7fd1730de23d9a3c08fee2ba92c31166ace716a71b515145f815680ca1af2ee72b3858ab99a
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/martile.rb
CHANGED
@@ -10,6 +10,8 @@ require 'rdiscount'
|
|
10
10
|
|
11
11
|
# bug fix: 11-Mar-2015: Escapes angle brackets within a code block *before*
|
12
12
|
# the string is passed to Rexle
|
13
|
+
# bug fix: A new line character is now added after the creation
|
14
|
+
# of the code block tags
|
13
15
|
# bug fix: 01-Mar-2015: code_block_to_html() now only searches strings which
|
14
16
|
# are outside of angle brackets
|
15
17
|
# bug fix: 10-Dec-2014: Generation of pre tags using // can now only happen
|
@@ -108,7 +110,7 @@ class Martile
|
|
108
110
|
if r.join.strip.length > 0 then
|
109
111
|
raw_code = a.shift(r.length).map{|x| x.sub(/^ {4}/,'')}.join
|
110
112
|
|
111
|
-
code_block = "<pre><code>%s</code></pre
|
113
|
+
code_block = "<pre><code>%s</code></pre>\n" % escape(raw_code)
|
112
114
|
|
113
115
|
b << code_block
|
114
116
|
s2 = a.join
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|