mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
factor out xml building and remove duplication
This commit is contained in:
parent
871e18922b
commit
04560370f8
3 changed files with 84 additions and 50 deletions
|
@ -95,7 +95,6 @@ class TemplateParser
|
|||
options[:depend]= line[0].chr == "^" ? true : false;
|
||||
line = line[1..line.length] # remove first char
|
||||
|
||||
# find notes
|
||||
tmp= line.split("|")
|
||||
if tmp.length > 5
|
||||
puts "Formatting error: found too many |"
|
||||
|
@ -113,7 +112,7 @@ class TemplateParser
|
|||
|
||||
options[:context]=tmp[1]
|
||||
options[:taglist]=tmp[2]
|
||||
options[:notes]=tmp[3]
|
||||
options[:notes] =tmp[3]
|
||||
options
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue