From fc605b699ee928c529f0f6aa18d666acc54835bd Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sun, 21 Sep 2014 14:55:34 +0100 Subject: add_seg: fix --- add_seg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/add_seg b/add_seg index c7fd521..e4fe22d 100755 --- a/add_seg +++ b/add_seg @@ -23,10 +23,11 @@ while line = STDIN.gets ext = '' if cfg[:nogz] s = " 0 puts s + " id=\"#{index[j]}\"> #{line.strip} " + if cfg[:grammar] then s += " grammar=\"#{cfg[:grammar]}/grammar.#{index[j]}#{ext}\"" end else + if cfg[:grammar] then s += " grammar=\"#{cfg[:grammar]}/grammar.#{i}#{ext}\"" end puts s + " id=\"#{i}\"> #{line.strip} " end i += 1 -- cgit v1.2.3