From: W. Trevor King Date: Fri, 29 Aug 2008 10:07:59 +0000 (-0400) Subject: Added OX='n' -W-='n' case to gen_NFPA.sh X-Git-Tag: 0.3~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=54126dba5e1d4044aeb53fac573290731e0e27f1;p=chemdb.git Added OX='n' -W-='n' case to gen_NFPA.sh Also fixed re typo in Location regexp compile --- diff --git a/chem_web.py b/chem_web.py index 5494e6e..203d200 100755 --- a/chem_web.py +++ b/chem_web.py @@ -189,7 +189,7 @@ class docs (object) : db._refresh() formdata = web.input() user_regexp = formdata['regexp'] - regexp = re.compile(user_regexp, 'I') # Case insensitive + regexp = re.compile(user_regexp, re.I) # Case insensitive path = dgen.door_warning(lambda r: regexp.match(r['Location'])) print file(path, 'rb').read() , diff --git a/docs/mp/gen_NFPA.sh b/docs/mp/gen_NFPA.sh index 8057467..4014905 100755 --- a/docs/mp/gen_NFPA.sh +++ b/docs/mp/gen_NFPA.sh @@ -65,6 +65,8 @@ then elif [ "$W" == "y" ] then echo "o := btex {\medfont \W} etex;" +else # both are "n" + echo "o := btex etex" fi if [ $REDIRECT -ne 0 ]