mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +08:00
tools: strip trailing whitespace from markdown
Signed-off-by: Ramon Roche <mrpollo@gmail.com>
This commit is contained in:
@@ -36,6 +36,10 @@ else
|
|||||||
make $make_target > /dev/null 2>&1
|
make $make_target > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# ─── Strip trailing whitespace from the newly generated Markdown ────────────────────────────────
|
||||||
|
echo "✂️ Removing trailing whitespace from $src_file"
|
||||||
|
sed -i 's/[[:space:]]\+$//' "$src_file"
|
||||||
|
|
||||||
# Verify build output
|
# Verify build output
|
||||||
if [[ ! -f "$src_file" ]]; then
|
if [[ ! -f "$src_file" ]]; then
|
||||||
echo "❌ Generated file not found: $src_file"
|
echo "❌ Generated file not found: $src_file"
|
||||||
|
|||||||
Reference in New Issue
Block a user