[Checkins] SVN: Sandbox/ulif/grok-reference-with-rest3/doc/build/grokdocs.py Consider last option, if it is given several times.

Uli Fouquet uli at gnufix.de
Tue Feb 26 22:07:33 EST 2008


Log message for revision 84313:
  Consider last option, if it is given several times.

Changed:
  U   Sandbox/ulif/grok-reference-with-rest3/doc/build/grokdocs.py

-=-
Modified: Sandbox/ulif/grok-reference-with-rest3/doc/build/grokdocs.py
===================================================================
--- Sandbox/ulif/grok-reference-with-rest3/doc/build/grokdocs.py	2008-02-27 03:02:24 UTC (rev 84312)
+++ Sandbox/ulif/grok-reference-with-rest3/doc/build/grokdocs.py	2008-02-27 03:07:32 UTC (rev 84313)
@@ -143,7 +143,7 @@
 
     if opts and '-b' in [x for x,y in opts]:
         val = filter(lambda x: x[0] == '-b', opts)
-        val = val[0][1]
+        val = val[-1][1]
         if val == 'latex':
             # disable code-block directive by substituting it with a
             # LaTeX-specialized version...



More information about the Checkins mailing list