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
|
uhrzeit = nil
|
||||||
titel1 = nil
|
titel1 = nil
|
||||||
titel2 = nil
|
titel2 = nil
|
||||||
|
titel3 = nil
|
||||||
tag = 1
|
tag = 1
|
||||||
|
|
||||||
roh.split("\n").each do |line|
|
roh.split("\n").each do |line|
|
||||||
|
@ -20,6 +21,7 @@ roh.split("\n").each do |line|
|
||||||
if uhrzeit
|
if uhrzeit
|
||||||
puts "#{tag} #{uhrzeit} KLAMMER AUF #{titel1}"
|
puts "#{tag} #{uhrzeit} KLAMMER AUF #{titel1}"
|
||||||
puts "#{tag} #{uhrzeit} KLAMMER ZU #{titel2}"
|
puts "#{tag} #{uhrzeit} KLAMMER ZU #{titel2}"
|
||||||
|
puts "#{tag} #{uhrzeit} IRGENDWO #{titel3}"
|
||||||
end
|
end
|
||||||
|
|
||||||
if uhrzeit && $1 < uhrzeit
|
if uhrzeit && $1 < uhrzeit
|
||||||
|
@ -29,13 +31,22 @@ roh.split("\n").each do |line|
|
||||||
uhrzeit = $1
|
uhrzeit = $1
|
||||||
titel1 = nil
|
titel1 = nil
|
||||||
titel2 = nil
|
titel2 = nil
|
||||||
end
|
titel3 = nil
|
||||||
|
elsif line =~ /^\| *('''(.*)'''|.*(GOTO).*) *$/
|
||||||
|
|
||||||
if line =~/^\| *'''(.*)''' *$/
|
# yum
|
||||||
if titel1 == nil
|
if $1 == "GOTO"
|
||||||
titel1 = cleanse($1)
|
t = ""
|
||||||
else
|
else
|
||||||
titel2 = cleanse($1)
|
t = $1
|
||||||
|
end
|
||||||
|
|
||||||
|
if titel1 == nil
|
||||||
|
titel1 = cleanse(t)
|
||||||
|
elsif titel2 == nil
|
||||||
|
titel2 = cleanse(t)
|
||||||
|
else
|
||||||
|
titel3 = cleanse(t)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Reference in a new issue