[or-cvs] r23860: {arm} fix: preventing man page parsing from complaining about an u (arm/trunk/src/util)

Damian Johnson atagar1 at gmail.com
Fri Nov 26 05:19:46 UTC 2010


Author: atagar
Date: 2010-11-26 05:19:46 +0000 (Fri, 26 Nov 2010)
New Revision: 23860

Modified:
   arm/trunk/src/util/torConfig.py
Log:
fix: preventing man page parsing from complaining about an unrecognized 'OPTIONS' category



Modified: arm/trunk/src/util/torConfig.py
===================================================================
--- arm/trunk/src/util/torConfig.py	2010-11-25 22:47:24 UTC (rev 23859)
+++ arm/trunk/src/util/torConfig.py	2010-11-26 05:19:46 UTC (rev 23860)
@@ -191,7 +191,8 @@
           
           # if this is a category header then switch it
           if isCategoryLine:
-            if line.startswith("CLIENT"): lastCategory = CLIENT
+            if line.startswith("OPTIONS"): lastCategory = GENERAL
+            elif line.startswith("CLIENT"): lastCategory = CLIENT
             elif line.startswith("SERVER"): lastCategory = SERVER
             elif line.startswith("DIRECTORY SERVER"): lastCategory = DIRECTORY
             elif line.startswith("DIRECTORY AUTHORITY SERVER"): lastCategory = AUTHORITY



More information about the tor-commits mailing list