Function wood::indented_woodslist_detail[][src]

pub fn indented_woodslist_detail(
    w: &Wood,
    indent_is_tab: bool,
    tab_size: usize,
    column_limit: usize
) -> String

formats a Wood into readable indented woodslist notation

Arguments

  • column_limit - column_limit ignores indentation, only limits the length of what’s beyond the indentation. The reason is… for a start, that’s simpler to implement. If it had a strict limit, deeply indented code would get sort of squashed as it approaches the side, which is visually awkward, and eventually it would have to be allowed to penetrate through the limit, and I didn’t want to code that. If you don’t expect to indent deeply, this shouldn’t make much of a difference to you. Pull requests for a more strictly constraining column limit are welcome.