Cleanup.
This commit is contained in:
parent
ef8a6884fe
commit
e21701b97c
@ -128,19 +128,6 @@ fn _element<'b, 'g, 'r, 's>(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if maybe_element.is_none() {
|
|
||||||
// #[cfg(feature = "tracing")]
|
|
||||||
// let span = span!(tracing::Level::DEBUG, "Regular keyword.");
|
|
||||||
// #[cfg(feature = "tracing")]
|
|
||||||
// let _enter = span.enter();
|
|
||||||
|
|
||||||
// let (remain, kw) = opt(map(keyword_matcher, Element::Keyword))(remaining)?;
|
|
||||||
// if kw.is_some() {
|
|
||||||
// maybe_element = kw;
|
|
||||||
// remaining = remain;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
if maybe_element.is_none() {
|
if maybe_element.is_none() {
|
||||||
#[cfg(feature = "tracing")]
|
#[cfg(feature = "tracing")]
|
||||||
let span = span!(
|
let span = span!(
|
||||||
|
@ -269,6 +269,9 @@ impl<'s> Comment<'s> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl<'s> ExportBlock<'s> {
|
impl<'s> ExportBlock<'s> {
|
||||||
|
/// Gets the export type capitalized.
|
||||||
|
///
|
||||||
|
/// Upstream Emacs Org-mode capitalizes the export type.
|
||||||
pub fn get_export_type(&self) -> Option<String> {
|
pub fn get_export_type(&self) -> Option<String> {
|
||||||
self.export_type.map(|s| s.to_uppercase())
|
self.export_type.map(|s| s.to_uppercase())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user