File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ fn extract_text_from_markdown(text: &str) -> String {
74
74
cleaned_text. push_str ( & text) ;
75
75
}
76
76
}
77
- Event :: SoftBreak | Event :: HardBreak => {
77
+ Event :: SoftBreak | Event :: HardBreak | Event :: End ( TagEnd :: Paragraph ) => {
78
78
cleaned_text. push ( '\n' ) ;
79
79
}
80
80
Event :: Start ( tag) => match tag {
@@ -1091,6 +1091,24 @@ line two
1091
1091
"### ) ;
1092
1092
}
1093
1093
1094
+ #[ test]
1095
+ fn parse_try_md_paragraph ( ) {
1096
+ let cmds = parse_commands (
1097
+ "@bors try
1098
+
1099
+ for the crater" ,
1100
+ ) ;
1101
+ assert_eq ! ( cmds. len( ) , 1 ) ;
1102
+ insta:: assert_debug_snapshot!( cmds[ 0 ] , @r"
1103
+ Ok(
1104
+ Try {
1105
+ parent: None,
1106
+ jobs: [],
1107
+ },
1108
+ )
1109
+ " ) ;
1110
+ }
1111
+
1094
1112
#[ test]
1095
1113
fn parse_try_unknown_arg ( ) {
1096
1114
let cmds = parse_commands ( "@bors try a" ) ;
You can’t perform that action at this time.
0 commit comments