diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/pygmentex/demo.py')
-rw-r--r-- | Master/texmf-dist/doc/latex/pygmentex/demo.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pygmentex/demo.py b/Master/texmf-dist/doc/latex/pygmentex/demo.py new file mode 100644 index 00000000000..a5fa60eed43 --- /dev/null +++ b/Master/texmf-dist/doc/latex/pygmentex/demo.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- + +def parse_opts(dic, opts): + for opt in re.split(r'\s*,\s*', opts): + x = re.split(r'\s*=\s*', opt) + if len(x) == 2 and x[0] and x[1]: + dic[x[0]] = x[1] + elif len(x) == 1 and x[0]: + dic[x[0]] = True + return dic |