[all-commits] [llvm/llvm-project] c5dabf: Fix dump_format_style.py blank lines and trailing ...
Reid Kleckner via All-commits
all-commits at lists.llvm.org
Mon Aug 3 15:56:19 PDT 2026
Branch: refs/heads/users/rnk/clang-format-md-write
Home: https://github.com/llvm/llvm-project
Commit: c5dabf047643f0e5d905bf1c48f4d5dfe3af6f8f
https://github.com/llvm/llvm-project/commit/c5dabf047643f0e5d905bf1c48f4d5dfe3af6f8f
Author: Reid Kleckner <rkleckner at nvidia.com>
Date: 2026-08-03 (Mon, 03 Aug 2026)
Changed paths:
M clang/docs/ClangFormatStyleOptions.md
M clang/docs/tools/dump_format_style.py
M clang/include/clang/Format/Format.h
Log Message:
-----------
Fix dump_format_style.py blank lines and trailing whitespace, regenerate
The reindent_fenced_blocks() change in the previous commit introduced two
output issues when regenerating ClangFormatStyleOptions.md:
1. Empty lines inside code blocks got an indentation prefix added, producing
trailing whitespace. Fix by skipping the prefix for whitespace-only lines.
2. The blank line that separates a description sentence from the following
code fence was lost. This blank line is necessary for correct CommonMark
loose-list rendering. Fix by inserting a blank line before any opening
code fence (triple-backtick with a lang word, or ::: with a directive)
that immediately follows a non-blank line.
Regenerate ClangFormatStyleOptions.md with the corrected generator.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list