summarylogtreecommitdiffstats
path: root/autostructify-tab_width-fallback.patch
blob: a897a00b80de6b6de63bf82db6d39fdb5a72e40d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -upr recommonmark-0.7.1.orig/recommonmark/transform.py recommonmark-0.7.1/recommonmark/transform.py
--- recommonmark-0.7.1.orig/recommonmark/transform.py	2019-08-09 21:38:35.000000000 +0300
+++ recommonmark-0.7.1/recommonmark/transform.py	2022-05-31 13:35:09.247049278 +0300
@@ -28,6 +28,8 @@ class AutoStructify(transforms.Transform
             self.config.update(new_cfg)
         except AttributeError:
             pass
+        # provide fallback like https://repo.or.cz/docutils.git/commit/e3bd0958bac8
+        self.document.settings.setdefault('tab_width', 8)
 
         # Deprecation notices
         # TODO move this check to an extension pattern, and only call once