Commit e5a52766 authored by Anna-Maria Behnsen's avatar Anna-Maria Behnsen Committed by Jonathan Corbet

scripts/kernel-doc: Do not process backslash lines in comments

To prevent this, do the pre-processing only for lines which are no
comments, e.g. do not start with ' *'.
Suggested-by: default avatarMatthew Wilcox <willy@infradead.org>
Signed-off-by: default avatarAnna-Maria Behnsen <anna-maria@linutronix.de>
Tested-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Acked-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20240122093152.22536-3-anna-maria@linutronix.de
parent a0abb82d
......@@ -2331,7 +2331,7 @@ sub process_file($) {
$section_counter = 0;
while (<IN_FILE>) {
while (s/\\\s*$//) {
while (!/^ \*/ && s/\\\s*$//) {
$_ .= <IN_FILE>;
}
# Replace tabs by spaces
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment