frickl
This commit is contained in:
parent
6a63c517ae
commit
0f49fa8321
1 changed files with 16 additions and 5 deletions
|
@ -12,6 +12,7 @@ end
|
|||
uhrzeit = nil
|
||||
titel1 = nil
|
||||
titel2 = nil
|
||||
titel3 = nil
|
||||
tag = 1
|
||||
|
||||
roh.split("\n").each do |line|
|
||||
|
@ -20,6 +21,7 @@ roh.split("\n").each do |line|
|
|||
if uhrzeit
|
||||
puts "#{tag} #{uhrzeit} KLAMMER AUF #{titel1}"
|
||||
puts "#{tag} #{uhrzeit} KLAMMER ZU #{titel2}"
|
||||
puts "#{tag} #{uhrzeit} IRGENDWO #{titel3}"
|
||||
end
|
||||
|
||||
if uhrzeit && $1 < uhrzeit
|
||||
|
@ -29,13 +31,22 @@ roh.split("\n").each do |line|
|
|||
uhrzeit = $1
|
||||
titel1 = nil
|
||||
titel2 = nil
|
||||
end
|
||||
titel3 = nil
|
||||
elsif line =~ /^\| *('''(.*)'''|.*(GOTO).*) *$/
|
||||
|
||||
# yum
|
||||
if $1 == "GOTO"
|
||||
t = ""
|
||||
else
|
||||
t = $1
|
||||
end
|
||||
|
||||
if line =~/^\| *'''(.*)''' *$/
|
||||
if titel1 == nil
|
||||
titel1 = cleanse($1)
|
||||
else
|
||||
titel2 = cleanse($1)
|
||||
titel1 = cleanse(t)
|
||||
elsif titel2 == nil
|
||||
titel2 = cleanse(t)
|
||||
else
|
||||
titel3 = cleanse(t)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Reference in a new issue