lib/trac-wiki/parser.rb in trac-wiki-0.3.12 vs lib/trac-wiki/parser.rb in trac-wiki-0.3.13
- old
+ new
@@ -55,13 +55,17 @@
# ...
# ]
attr_accessor :headings
def env
- env
+ @env
end
+ attr_reader :used_templates
+ @used_templates = {}
+
+
# url base for links
attr_writer :base
# Disable url escaping for local links
# Escaping: [[/Test]] --> %2FTest
@@ -149,9 +153,10 @@
def was_math?; @was_math; end
def to_html(text = nil)
text(text) if ! text.nil?
+ @used_templates = {}
@was_math = false
@anames = {}
@count_lines_level = 0
@text = text if !text.nil?
@tree = TracWiki::Tree.new