From d1feea4f349804bdb001a300171b4e63d48fec49 Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Tue, 18 Oct 2022 08:13:17 +0200 Subject: [PATCH] ignore headings --- ci/semantic-line-breaks/src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ci/semantic-line-breaks/src/main.rs b/ci/semantic-line-breaks/src/main.rs index e3aca7a26..f58a2f7d8 100644 --- a/ci/semantic-line-breaks/src/main.rs +++ b/ci/semantic-line-breaks/src/main.rs @@ -58,6 +58,10 @@ fn comply(content: &str) -> Result { if ignore_re.is_match(line) { continue; } + // headings + if line.starts_with('#') { + continue; + } let line = line.trim_end(); if line.is_empty() { continue;