faqml 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fml/markdown_filter.rb +1 -1
- data/lib/fml/parser.rb +3 -2
- data/lib/fml/version.rb +1 -1
- metadata +2 -2
data/lib/fml/markdown_filter.rb
CHANGED
data/lib/fml/parser.rb
CHANGED
@@ -72,17 +72,18 @@ class FAQML::Parser
|
|
72
72
|
@stacks << [:fml, :question, [:fml, :summary, [qsummary]], [:fml, :details, []]]
|
73
73
|
|
74
74
|
else
|
75
|
+
|
75
76
|
indent = get_indent(@line)
|
76
77
|
if @base_indent == 0
|
77
78
|
@base_indent = indent
|
78
79
|
@strip_exp = %r"^\s{#{@base_indent}}"
|
79
80
|
end
|
80
81
|
|
81
|
-
if @base_indent > 0 && indent >= @base_indent && !@current.nil?
|
82
|
+
if @base_indent > 0 && (indent >= @base_indent || @line.strip == '') && !@current.nil?
|
82
83
|
# strip off base_indent from @line
|
83
84
|
@stacks.last.last.last << [:static, @line.sub("\t", @tab).sub(@strip_exp, '')]
|
84
85
|
@stacks.last.last.last << [:newline]
|
85
|
-
elsif @line.strip
|
86
|
+
elsif @line.strip == ''
|
86
87
|
# done with the indented block
|
87
88
|
@base_indent = 0
|
88
89
|
@current = nil
|
data/lib/fml/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faqml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-09-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: redcarpet
|