Skip to content

Commit ce3ed97

Browse files
author
Jorge Aparicio
committed
"re-space" field descriptions to not contain newlines
1 parent 232549f commit ce3ed97

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,6 +1200,8 @@ fn field_doc(bit_range: BitRange, doc: Option<&String>) -> String {
12001200
let BitRange { offset, width } = bit_range;
12011201

12021202
if let Some(doc) = doc {
1203+
let doc = respace(doc);
1204+
12031205
if width == 1 {
12041206
format!("Bit {} - {}", offset, doc)
12051207
} else {

0 commit comments

Comments
 (0)