diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-02-08 20:37:45 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-02-08 20:37:45 +0000 |
| commit | d6494f9fe0d2265167295c4d813173945fd505cf (patch) | |
| tree | f52e615c44956678a5897ec68d6cd9762711b44c /mammoth | |
| parent | 6a36ee5303addbf1ce5f95dfa5e4c0d419cf1d9d (diff) | |
Handle image elements with no alt text in markdown writer
Diffstat (limited to 'mammoth')
| -rw-r--r-- | mammoth/writers/markdown.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mammoth/writers/markdown.py b/mammoth/writers/markdown.py index 4aa73d5..6db4ea9 100644 --- a/mammoth/writers/markdown.py +++ b/mammoth/writers/markdown.py @@ -36,7 +36,7 @@ def _hyperlink(attributes): def _image(attributes): src = attributes.get("src") - alt_text = attributes.get("alt") + alt_text = attributes.get("alt", "") return _WriterOutput("".format(alt_text, src), "") |
