Maintain consistent indentation when handling multiple consecutive verbatim sections #4

Merged
merged 1 commit into from Dec 20, 2011

Conversation

Projects
None yet
2 participants
Contributor

prakashk commented Dec 20, 2011

The following code segment from a pod file:

sub shirt_size {
    my $self = shift;

    if (@_) {
        $self->_validate_shirt_size( $_[0] );
        $self->{shirt_size} = $_[0];
    }

    return $self->{shirt_size};
}

is formatted as the following docbook xml (notice how the if block is outdented):

<screen><![CDATA[sub shirt_size {
    my $self = shift;

if (@_) {
    $self->_validate_shirt_size( $_[0] );
    $self->{shirt_size} = $_[0];
}

    return $self->{shirt_size};
}]]></screen>

This commit fixes this.

Please review.

Thanks,
Prakash

@jozef jozef added a commit that referenced this pull request Dec 20, 2011

@jozef jozef Merge pull request #4 from prakashk/master
Maintain consistent indentation when handling multiple consecutive verbatim sections
e666125

@jozef jozef merged commit e666125 into jozef:master Dec 20, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment