wiki_md 0.8.7 → 0.8.8
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/lib/wiki_md.rb +9 -2
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb07bc6df7d5c864a4aaabd6c3363b51647199ad6b2dcd8476926781ea49ff99
|
4
|
+
data.tar.gz: 9c0fe45b98a505fb8f3aa82f779b26290e698d586d05b33b2236059d34ff2400
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06d7d791a29317e5bb060d368ba3710edd94acfe0e622b031dc9ab9d96489713a56c3560e7133a3416a692b88537b7a52d50cd43624162dd431708ba360dd130
|
7
|
+
data.tar.gz: af688d05d346867bb1071042349807997c0819448e0f194249eb54473d6c7564be751d83bda2c909441d057f99faf6243da87a5a31b62b74689071cec7ad44e3
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/wiki_md.rb
CHANGED
@@ -79,6 +79,10 @@ class WikiMd
|
|
79
79
|
|
80
80
|
if wiki then
|
81
81
|
|
82
|
+
if wiki.lines.length > 1 and wiki.lstrip[0] != '<' then
|
83
|
+
wiki = "<?wikimd version='1.0'?>\ntitle: Untitled\n\n" + wiki
|
84
|
+
end
|
85
|
+
|
82
86
|
puts 'before rxfhelper wiki: ' + wiki.inspect if @debug
|
83
87
|
raw_s, type = RXFHelper.read(wiki, auto: false)
|
84
88
|
s = raw_s.strip
|
@@ -137,6 +141,7 @@ class WikiMd
|
|
137
141
|
@filepath = File.dirname @filename
|
138
142
|
|
139
143
|
indexfile = File.join(@filepath, 'index.xml')
|
144
|
+
puts 'indexfile: ' + indexfile.inspect if @debug
|
140
145
|
|
141
146
|
if s != FileX.read(wiki) then
|
142
147
|
|
@@ -145,6 +150,7 @@ class WikiMd
|
|
145
150
|
|
146
151
|
dxtagsfile = File.join(@filepath, 'dxtags.xml')
|
147
152
|
FileX.rm dxtagsfile if FileX.exists? dxtagsfile
|
153
|
+
save()
|
148
154
|
|
149
155
|
end
|
150
156
|
|
@@ -733,8 +739,9 @@ title: #{title}
|
|
733
739
|
|
734
740
|
rows = dx.all.map do |record|
|
735
741
|
|
736
|
-
a = record.x.lines
|
737
|
-
|
742
|
+
a = record.x.strip.lines
|
743
|
+
puts 'a: ' + a.inspect if @debug
|
744
|
+
|
738
745
|
raw_heading = a.shift.chomp
|
739
746
|
footer = a.pop
|
740
747
|
body = a.join.strip
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|