File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,7 @@ pub fn ordered_list(Json(args): Json<Vec<Value>>) -> FnResult<String> {
3030 let mut items_str = String :: new ( ) ;
3131 for item in items {
3232 if item. starts_with ( "<UnorderedList>" ) || item. starts_with ( "<OrderedList>" ) {
33- return Err ( WithReturnCode :: new (
34- anyhow:: anyhow!( "items cannot contain another list" ) ,
35- 1 ,
36- ) ) ;
33+ items_str. push_str ( & item) ;
3734 } else {
3835 items_str. push_str ( & format ! ( "<ListItem>{}</ListItem>" , item) ) ;
3936 }
Original file line number Diff line number Diff line change @@ -30,10 +30,7 @@ pub fn unordered_list(Json(args): Json<Vec<Value>>) -> FnResult<String> {
3030 let mut items_str = String :: new ( ) ;
3131 for item in items {
3232 if item. starts_with ( "<UnorderedList>" ) || item. starts_with ( "<OrderedList>" ) {
33- return Err ( WithReturnCode :: new (
34- anyhow:: anyhow!( "items cannot contain another list" ) ,
35- 1 ,
36- ) ) ;
33+ items_str. push_str ( & item) ;
3734 } else {
3835 items_str. push_str ( & format ! ( "<ListItem>{}</ListItem>" , item) ) ;
3936 }
You can’t perform that action at this time.
0 commit comments