Changeset 36297


Ignore:
Timestamp:
2022-07-21T20:15:41+12:00 (3 weeks ago)
Author:
anupama
Message:

lomdemo-e's XMLRecord value does need the line feed (backslash-n) characters for nice display.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/LOMPlugin.pm

    r36293 r36297  
    104104    $self->{'extra_blocks'} = {};
    105105
    106     $self->{'endline'} = ($ENV{'GSDL3SRCHOME'}) ? "" : "\n";   
     106    $self->{'endline'} = ($ENV{'GSDL3SRCHOME'}) ? "" : "\n";
    107107   
    108108    return bless $self, $class;
     
    325325    else {
    326326    my $xml_depth = scalar(@{$self->{'metaname_stack'}});
    327     $self->{'raw_text'} .= $self->{'endline'};
     327    $self->{'raw_text'} .= "\n";
    328328    $self->{'raw_text'} .= "  " x $xml_depth;
    329329    $self->{'raw_text'} .= $raw_tag;
     
    395395
    396396    my $xml_depth = scalar(@{$self->{'metaname_stack'}});
    397     $self->{'raw_text'} .= $self->{'endline'};
     397    $self->{'raw_text'} .= "\n";
    398398    $self->{'raw_text'} .= "  " x $xml_depth;
    399399    $self->{'raw_text'} .= $raw_tag;
Note: See TracChangeset for help on using the changeset viewer.