Skip to content

Commit

Permalink
Fix parsing with multi-lines quotes
Browse files Browse the repository at this point in the history
Prospective fix for issue #25
  • Loading branch information
ogoffart committed Jul 11, 2024
1 parent 8d89242 commit 7c77558
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ fn get_balanced<'a>(
} else {
*result.to_mut() += line;
}
if level == 0 {
if level == 0 && !in_quote {
return Ok(result);
}
line = if let Some(l) = lines.next() {
Expand Down Expand Up @@ -807,6 +807,11 @@ ixyz = [
"arrays"
]
]
replace = """
<!-- next-header -->
## [Unreleased] - ReleaseDate
"""
[dev-dependencies]
## dep1
dep1 = {
Expand Down

0 comments on commit 7c77558

Please sign in to comment.