Changeset 754:2de0fc630899 in lemon-main for scripts
- Timestamp:
- 10/10/09 08:15:07 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/bib2dox.py
r745 r754 71 71 author_rex = re.compile('\s+and\s+') 72 72 rembraces_rex = re.compile('[{}]') 73 capitalize_rex = re.compile('({ \w*})')73 capitalize_rex = re.compile('({[^}]*})') 74 74 75 75 # used by bibtexkeywords(data) … … 364 364 if entrycont.has_key('note') and (entrycont['note'] != ''): 365 365 entry.append(entrycont['note'] + '.') 366 if entrycont.has_key('url') and (entrycont['url'] != ''): 367 entry.append(entrycont['url'] + '.') 366 368 367 369 # generate keys for sorting and for the output … … 411 413 field = string.lower(field) 412 414 data = data_rex.sub('\g<2>', line) 415 416 if field == 'url': 417 data = '\\url{' + data.strip() + '}' 413 418 414 419 if field in ('author', 'editor'):
Note: See TracChangeset
for help on using the changeset viewer.