#693055 xmlformat does not support indenting of comments and PIs

#693055#5
Date:
2012-11-12 14:48:50 UTC
From:
To:
It would ce nice if xmlformat would support customization for comments and PIs.
#693055#10
Date:
2012-11-12 14:52:44 UTC
From:
To:
severity 693055 minor
thanks


Hi Mathieu,

There isn't any syntax for them.  In tree_format, they're handled
like this:

    # Comments, PIs, etc. (everything other than text and elements),
    # treat similarly to verbatim block:
    # - Flush any pending output
    # - Put out a break
    # - Add node content to collected output

    $self->flush_pending ($indent);
    $self->emit_break (0)
      unless $prev_child_is_text && !$self->block_normalize ();
    $self->set_block_break_type ("element-break");
    $self->add_to_doc ($child->{content});