diff options
author | Peter von Kaehne <refdoc@gmx.net> | 2018-06-10 09:27:02 +0000 |
---|---|---|
committer | Peter von Kaehne <refdoc@gmx.net> | 2018-06-10 09:27:02 +0000 |
commit | 58ecc738e4661242ba3e9034d92dda884ee07973 (patch) | |
tree | f3310ec3a6c0a1b471df1b99476710b26aa45358 /modules/perlconverters/imp2osis.pl | |
parent | ec39e4b80b35b663860920befc09c71caa34b491 (diff) | |
download | sword-tools-58ecc738e4661242ba3e9034d92dda884ee07973.tar.gz |
improved milestoned output (chapters are now milestoned too)
git-svn-id: https://www.crosswire.org/svn/sword-tools/trunk@530 07627401-56e2-0310-80f4-f8cd0041bdcd
Diffstat (limited to 'modules/perlconverters/imp2osis.pl')
-rwxr-xr-x | modules/perlconverters/imp2osis.pl | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/modules/perlconverters/imp2osis.pl b/modules/perlconverters/imp2osis.pl index e843706..0c1cf92 100755 --- a/modules/perlconverters/imp2osis.pl +++ b/modules/perlconverters/imp2osis.pl @@ -677,7 +677,12 @@ sub closeVers { sub closeChap { if ($openChap == 1) { - print OUTF "<\/chapter>\n"; + if ($milestone == 0) { + print OUTF "<\/chapter>\n"; + } + else { + print OUTF "<chapter eID=\"$book.$chap\"\/>\n"; + } } $openChap = 0; } @@ -738,8 +743,13 @@ foreach $line (@datab) { if ($lastChap > 0) { closeChap(); } - print OUTF "<chapter osisID=\"$book.$chap\">\n"; $openChap = 1; + if ($milestone == 0) { + print OUTF "<chapter osisID=\"$book.$chap\">\n"; + } + else { + print OUTF "<chapter osisID=\"$book.$chap\" sID=\"$book.$chap\"\/>\n"; + } $lastVers = -1; } |