Add real handling for preserve indent.

Now that I know which flag changes this setting, we can handle it properly.
This commit is contained in:
Tom Alexander
2023-10-04 19:23:47 -04:00
parent e1e4ac75e4
commit 87ac18e6b2
3 changed files with 46 additions and 21 deletions

View File

@@ -50,6 +50,7 @@ pub struct ExampleBlock<'s> {
pub source: &'s str,
pub switches: Option<&'s str>,
pub number_lines: Option<SwitchNumberLines>,
pub preserve_indent: Option<CharOffsetInLine>,
pub retain_labels: RetainLabels,
pub use_labels: bool,
pub label_format: Option<&'s str>,
@@ -71,6 +72,7 @@ pub struct SrcBlock<'s> {
pub switches: Option<&'s str>,
pub parameters: Option<&'s str>,
pub number_lines: Option<SwitchNumberLines>,
pub preserve_indent: Option<CharOffsetInLine>,
pub retain_labels: RetainLabels,
pub use_labels: bool,
pub label_format: Option<&'s str>,