From 54126dba5e1d4044aeb53fac573290731e0e27f1 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 29 Aug 2008 06:07:59 -0400 Subject: [PATCH] Added OX='n' -W-='n' case to gen_NFPA.sh Also fixed re typo in Location regexp compile --- chem_web.py | 2 +- docs/mp/gen_NFPA.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 ] -- 2.26.2