From 09dc8ab74c946fad74706d86e6a1376b2e384a15 Mon Sep 17 00:00:00 2001 From: Mark de Wever Date: Thu, 21 Oct 2021 20:06:30 +0200 Subject: [PATCH] [libc++][doc] Fixes FeatureTestMacroTable.html. `utils/generate_feature_test_macro_components.py` uses the wrong indentation. `:name: feature-status-table :widths: auto` is rendered as text instead of being used by Sphinx to render the table properly. This fixes the identation in the souce and updates the generated output. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D112251 --- libcxx/docs/FeatureTestMacroTable.rst | 4 ++-- libcxx/utils/generate_feature_test_macro_components.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libcxx/docs/FeatureTestMacroTable.rst b/libcxx/docs/FeatureTestMacroTable.rst index 68d2e3ae6465..d58451a55546 100644 --- a/libcxx/docs/FeatureTestMacroTable.rst +++ b/libcxx/docs/FeatureTestMacroTable.rst @@ -18,8 +18,8 @@ Status ====== .. table:: Current Status - :name: feature-status-table - :widths: auto + :name: feature-status-table + :widths: auto ================================================= ================= Macro Name Value diff --git a/libcxx/utils/generate_feature_test_macro_components.py b/libcxx/utils/generate_feature_test_macro_components.py index e52b757bc809..4853ec43f933 100755 --- a/libcxx/utils/generate_feature_test_macro_components.py +++ b/libcxx/utils/generate_feature_test_macro_components.py @@ -1095,8 +1095,8 @@ Status ====== .. table:: Current Status - :name: feature-status-table - :widths: auto + :name: feature-status-table + :widths: auto {status_tables}