Skip to content

Commit

Permalink
Automatically use writer->undosep at the end of a slice
Browse files Browse the repository at this point in the history
  • Loading branch information
Witiko committed Mar 11, 2024
1 parent 40d768d commit 7435cc7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions markdown.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -25394,6 +25394,7 @@ function M.writer.new(options)
if attributes["#" .. self.slice_end_identifier] ~= nil and
self.slice_end_type == "^" then
if self.is_writing then
table.insert(buf, self.undosep())
table.insert(buf, tear_down_attributes())
end
self.is_writing = false
Expand Down Expand Up @@ -25445,6 +25446,7 @@ function M.writer.new(options)
if attributes["#" .. self.slice_end_identifier] ~= nil
and self.slice_end_type == "$" then
if self.is_writing then
table.insert(buf, self.undosep())
table.insert(buf, tear_down_attributes())
end
self.is_writing = false
Expand Down

0 comments on commit 7435cc7

Please sign in to comment.