diff options
author | Karl Berry <karl@freefriends.org> | 2014-08-20 21:53:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-08-20 21:53:18 +0000 |
commit | 95d91547803a6ceab929ef723dfdebe0e31e7a7e (patch) | |
tree | b0bab3bb1fed9f52a46cdb1f36a29d516c3ae2fe /Master/texmf-dist/doc/latex/pygmentex/demo.py | |
parent | 1dd6e5bec91358ff6bcd1964121979187a676cb4 (diff) |
pygmentex (12aug14)
git-svn-id: svn://tug.org/texlive/trunk@34996 c570f23f-e606-0410-a88d-b1316a301751
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 |