Revert "fix docx parse error(\n in alt)"
This reverts commit 663437fe16.
This commit is contained in:
parent
591c2f7801
commit
a0dc566d39
1 changed files with 0 additions and 2 deletions
|
|
@ -95,8 +95,6 @@ class _CustomMarkdownify(markdownify.MarkdownConverter):
|
||||||
src = el.attrs.get("src", None) or ""
|
src = el.attrs.get("src", None) or ""
|
||||||
title = el.attrs.get("title", None) or ""
|
title = el.attrs.get("title", None) or ""
|
||||||
title_part = ' "%s"' % title.replace('"', r"\"") if title else ""
|
title_part = ' "%s"' % title.replace('"', r"\"") if title else ""
|
||||||
# Remove all line breaks from alt
|
|
||||||
alt = alt.replace("\n", " ")
|
|
||||||
if (
|
if (
|
||||||
convert_as_inline
|
convert_as_inline
|
||||||
and el.parent.name not in self.options["keep_inline_images_in"]
|
and el.parent.name not in self.options["keep_inline_images_in"]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue