From: Petter Reinholdtsen Date: Thu, 5 Dec 2019 07:52:26 +0000 (+0100) Subject: Quiet down fixup-docbook-translated.rb when no intro exist. X-Git-Tag: nb-printed-2020-11-13~119 X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/commitdiff_plain/068a33e0026c567fafc4d10d5a294c9a2a0987ae?hp=e606481dbcbeec77658856acc69deb340186544e Quiet down fixup-docbook-translated.rb when no intro exist. --- diff --git a/fixup-docbook-translated.rb b/fixup-docbook-translated.rb index 648cf26..d04f250 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' end if 'es' == lang