X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/blobdiff_plain/9d72f207f725490932aee278a4515e84742e21c4..510756c95e84ba6211a4cb727836ef57be5c0a93:/fixup-docbook-translated.rb diff --git a/fixup-docbook-translated.rb b/fixup-docbook-translated.rb index 648cf26..775fc36 100644 --- a/fixup-docbook-translated.rb +++ b/fixup-docbook-translated.rb @@ -21,12 +21,12 @@ def log(level,what) end end -log 0, 'Including the %s version introduction' % lang if intro = File.open('extra/%s/intro_%s.xml' % [lang, lang], 'r').read rescue nil + log 0, 'Including the %s version introduction' % lang xml.search('preface').last.after( intro ) else - log 0, ' -!- Introduction text not found or empty' + log 0, ' -!- Not including the %s introduction text' % lang end if 'es' == lang