aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/docs
diff options
context:
space:
mode:
authorGravatar Mark Daoust <markdaoust@google.com>2017-10-25 12:22:02 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-10-25 12:25:38 -0700
commitdf3b4444ccb61ef4858a6acf195d93f9c43d7b24 (patch)
treec3c7e45e44c7f9a3564998bf6d731788f7b6042e /tensorflow/tools/docs
parent06674161dc5c6b860bea559c2eef0217d49d86ca (diff)
Dedent compatibility blocks
This is to avoid accidentally triggering markdown's 4-space code-formatting PiperOrigin-RevId: 173432680
Diffstat (limited to 'tensorflow/tools/docs')
-rw-r--r--tensorflow/tools/docs/pretty_docs.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tensorflow/tools/docs/pretty_docs.py b/tensorflow/tools/docs/pretty_docs.py
index 5ea9394865..92f50189dd 100644
--- a/tensorflow/tools/docs/pretty_docs.py
+++ b/tensorflow/tools/docs/pretty_docs.py
@@ -290,7 +290,9 @@ def _build_compatibility(compatibility):
for key in sorted_keys:
value = compatibility[key]
- parts.append('\n\n#### %s compatibility\n%s\n' % (key, value))
+ # Dedent so that it does not trigger markdown code formatting.
+ value = textwrap.dedent(value)
+ parts.append('\n\n#### %s Compatibility\n%s\n' % (key.title(), value))
return ''.join(parts)