diff options
| author | 2025-08-16 07:00:40 -0400 | |
|---|---|---|
| committer | 2025-08-16 07:00:40 -0400 | |
| commit | 22e8d9823eb9fb802c926fb03a5fdccbea26f878 (patch) | |
| tree | d399937a3bf139d386b8f5df2fc646b751c14719 /gallery_dl/extractor/deviantart.py | |
| parent | 0839cde5064bd6000162ee23b8445b99afe10068 (diff) | |
| parent | 3d18761f620a294ea6c5bff13c5994b93b29f3ed (diff) | |
Update upstream source from tag 'upstream/1.30.3'
Update to upstream version '1.30.3'
with Debian dir cbd3490f51b0ee3f2e172965318cd079b856367d
Diffstat (limited to 'gallery_dl/extractor/deviantart.py')
| -rw-r--r-- | gallery_dl/extractor/deviantart.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/gallery_dl/extractor/deviantart.py b/gallery_dl/extractor/deviantart.py index 66e2a1e..d900f4c 100644 --- a/gallery_dl/extractor/deviantart.py +++ b/gallery_dl/extractor/deviantart.py @@ -430,13 +430,15 @@ class DeviantartExtractor(Extractor): if children := content.get("content"): html.append('<p style="') - attrs = content["attrs"] - if attrs.get("textAlign"): - html.append("text-align:") - html.append(attrs["textAlign"]) - html.append(";") - self._tiptap_process_indentation(html, attrs) - html.append('">') + if attrs := content.get("attrs"): + if align := attrs.get("textAlign"): + html.append("text-align:") + html.append(align) + html.append(";") + self._tiptap_process_indentation(html, attrs) + html.append('">') + else: + html.append('margin-inline-start:0px">') for block in children: self._tiptap_process_content(html, block) |
