diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2015-07-15 23:03:03 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2015-07-15 23:06:59 +0300 |
commit | 6f963022315d4306f50f2e7046f2872cfd3c0500 (patch) | |
tree | 4197bb5a9d8b03d8d0b100aece83d9c973b00d8e /wiki2text.py | |
parent | b3aa1433e6cd41cdb3a6212ad60d5468d6f6d649 (diff) | |
download | wit-6f963022315d4306f50f2e7046f2872cfd3c0500.tar.gz wit-6f963022315d4306f50f2e7046f2872cfd3c0500.tar.bz2 |
Parse tag attributes
* wikimarkup.py (TagAttributes)
(TagAttributeSyntax): New classes.
(BaseWikiMarkup): Store a TagAttributes object
in tag['args'] of an XML tag.
* wiki2html.py (str_tag): convert tag['args'] to string
* wiki2text.py: Likewise.
* wiki2texi.py (str_tag): Handle <div>
Diffstat (limited to 'wiki2text.py')
-rw-r--r-- | wiki2text.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wiki2text.py b/wiki2text.py index c92dbc0..6308da1 100644 --- a/wiki2text.py +++ b/wiki2text.py @@ -151,7 +151,7 @@ class TextWikiMarkup (WikiMarkup): else: s = '<' + elt['tag'] if elt['args']: - s += ' ' + elt['args'] + s += ' ' + str(elt['args']) s += '>' + self.format(elt['content']) + '</' + elt['tag'] + '>' return s |