Skip to content

Commit

Permalink
Merge pull request #376 from krkeegan/CODE_Definition
Browse files Browse the repository at this point in the history
Allow End of Line Comments in CODE Definition
  • Loading branch information
krkeegan committed Feb 28, 2014
2 parents c818575 + 1bbf54a commit 5ce062c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion bin/mh
Original file line number Diff line number Diff line change
Expand Up @@ -4778,7 +4778,6 @@ sub read_table_files {
print TABLE_OUT $_;
next;
}
$_ =~ s/#.*//; # Strip off comments
next if (/^\s*$/); # Skip blank lines
}
if ($format) {
Expand Down
3 changes: 2 additions & 1 deletion lib/read_table_A.pl
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ sub read_table_init_A {

sub read_table_A {
my ($record) = @_;
my $record_raw = $record;

if($record =~ /^#/ or $record =~ /^\s*$/) {
return;
Expand Down Expand Up @@ -275,7 +276,7 @@ sub read_table_A {
}
elsif($type eq "CODE") {
# This is for simple one line additions such as setting an attribute or adding an image.
($object) = "$record" =~ /CODE,\s+(.*)/;
($object) = "$record_raw" =~ /CODE,\s+(.*)/;
$code = "$object\n";
$object = '';
}
Expand Down

0 comments on commit 5ce062c

Please sign in to comment.