summaryrefslogtreecommitdiff
path: root/docs/dev
diff options
context:
space:
mode:
authorgoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2017-01-02 21:11:35 +0000
committergoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2017-01-02 21:11:35 +0000
commitcf3d9f44ad55dca397a0d9c01e018aa508331b37 (patch)
tree43571b19043504cc6475f9b0b8f5b43d3fbc6e85 /docs/dev
parentbb8e8c31dc36e8fb21165ecf3965ecad5f31caad (diff)
downloaddocutils-cf3d9f44ad55dca397a0d9c01e018aa508331b37.tar.gz
added notes to the "Doctree pruning" section
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8009 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docs/dev')
-rw-r--r--docs/dev/todo.txt23
1 files changed, 21 insertions, 2 deletions
diff --git a/docs/dev/todo.txt b/docs/dev/todo.txt
index cd60bb8de..209cbea39 100644
--- a/docs/dev/todo.txt
+++ b/docs/dev/todo.txt
@@ -1959,6 +1959,9 @@ any knowledge of the Python-Reader origin of these elements.
Doctree pruning
---------------
+[DG 2017-01-02: These are not definitive to-dos, just one developer's
+opinion. Added 2009-10-13 by Günter Milde, in r6178.]
+
The number of doctree nodes can be reduced by "normalizing" some related
nodes. This makes the document model and the writers somewhat simpler.
@@ -1966,15 +1969,31 @@ nodes. This makes the document model and the writers somewhat simpler.
a front-end to generic literal blocks. We could immediately (in 0.7)
remove the doctest node from the doctree, but leave the
syntax in reST. The reST parser could represent doctest blocks as
- literal blocks with a class attribute. The syntax could be left in
- reST (for a set period of time?).
+ literal blocks with a class attribute.
+
+ [DG 2017-01-02:] +0.
+
+ The syntax could be left in reST (for a set period of time?).
+
+ [DG 2017-01-02:] The syntax must be left in reST, practically
+ forever. Removing it would introduce a huge backwards
+ incompatibility. Any syntax removal must be preceded by a thorough
+ review and planning, including a deprecation warning process. My
+ opinion: it's not worth it.
* "Normalize" special admonitions (note, hint, warning, ...) during parsing
(similar to _`transforms.writer_aux.Admonitions`). There is no need to
keep them as distinct elements in the doctree specification.
+ [DG 2017-01-02:] -1: <note>{body}</> is much more concise and
+ expressive than <admonition><title>Note</>{body}</>, and the title
+ translation can be put off until much later in the process.
+
Keep the special admonition directives in reStructuredText syntax?
+ [DG 2017-01-02:] We must definitely keep the syntax. Removing it
+ would introduce a huge backwards incompatibility.
+
Unimplemented Transforms
========================