Initial structure for unhighlighted source blocks.
This commit is contained in:
@@ -9,7 +9,9 @@ use crate::intermediate::ISrcBlock;
|
||||
#[derive(Debug, Serialize)]
|
||||
#[serde(tag = "type")]
|
||||
#[serde(rename = "src_block")]
|
||||
pub(crate) struct RenderSrcBlock {}
|
||||
pub(crate) struct RenderSrcBlock {
|
||||
lines: Vec<String>,
|
||||
}
|
||||
|
||||
impl RenderSrcBlock {
|
||||
pub(crate) fn new(
|
||||
@@ -18,6 +20,8 @@ impl RenderSrcBlock {
|
||||
output_file: &Path,
|
||||
original: &ISrcBlock,
|
||||
) -> Result<RenderSrcBlock, CustomError> {
|
||||
Ok(RenderSrcBlock {})
|
||||
Ok(RenderSrcBlock {
|
||||
lines: original.lines.clone(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user