We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60f3bd7 commit ee97600Copy full SHA for ee97600
compiler/rustc_ast/src/util/comments.rs
@@ -34,18 +34,11 @@ pub fn beautify_doc_string(data: Symbol) -> Symbol {
34
i += 1;
35
}
36
37
- while i < j && lines[i].trim().is_empty() {
38
- i += 1;
39
- }
40
// like the first, a last line of all stars should be omitted
41
if j > i && !lines[j - 1].is_empty() && lines[j - 1].chars().all(|c| c == '*') {
42
j -= 1;
43
44
45
- while j > i && lines[j - 1].trim().is_empty() {
46
- j -= 1;
47
48
-
49
if i != 0 || j != lines.len() { Some((i, j)) } else { None }
50
51
src/test/rustdoc/mixing-doc-comments-and-attrs.S1_top-doc.html
@@ -1,4 +1,4 @@
1
-<div class="docblock"><p>Hello world!
2
-Goodbye!
+<div class="docblock"><p>Hello world!</p>
+<p>Goodbye!
3
Hello again!</p>
4
</div>
0 commit comments