diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2022-04-02 23:39:47 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2022-04-02 23:39:47 +0900 |
commit | e571479d5485e787c26497918a10801c12d9a98e (patch) | |
tree | 845721d30368f2f42ba5902b88f8b8a0f7506843 /sphinx/directives | |
parent | 9141464b8bcd4f2ade902107872fd001655a5131 (diff) | |
download | sphinx-git-e571479d5485e787c26497918a10801c12d9a98e.tar.gz |
Fix #10318: literalinclude: :prepend: option working with :dedent:
It will always be warned because prepending is processed before
dedenting. This changes the order of processing options.
Diffstat (limited to 'sphinx/directives')
-rw-r--r-- | sphinx/directives/code.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/directives/code.py b/sphinx/directives/code.py index dc44ed314..9437fe9a5 100644 --- a/sphinx/directives/code.py +++ b/sphinx/directives/code.py @@ -224,9 +224,9 @@ class LiteralIncludeReader: self.start_filter, self.end_filter, self.lines_filter, + self.dedent_filter, self.prepend_filter, - self.append_filter, - self.dedent_filter] + self.append_filter] lines = self.read_file(self.filename, location=location) for func in filters: lines = func(lines, location=location) |