Do not match text markup end with empty contents.

This commit is contained in:
Tom Alexander
2023-09-21 23:00:28 -04:00
parent b7c7057095
commit 31c782499e
2 changed files with 20 additions and 5 deletions

View File

@@ -59,6 +59,10 @@ impl<'s> OrgSource<'s> {
self.end - self.start
}
pub(crate) fn get_byte_offset(&self) -> usize {
self.start
}
pub(crate) fn get_preceding_character(&self) -> Option<char> {
self.preceding_character
}