start using witness->text and ->layertext for consistency checking
[scpubgit/stemmatology.git] / lib / Text / Tradition / Collation / Reading.pm
index 6906da8..746fd5f 100644 (file)
@@ -81,7 +81,7 @@ has 'text' => (
        required => 1,
        writer => 'alter_text',
        );
-
+       
 has 'is_start' => (
        is => 'ro',
        isa => 'Bool',
@@ -122,12 +122,11 @@ around BUILDARGS => sub {
        } else {
                $args = { @_ };
        }
-       
+                       
        # If one of our special booleans is set, we change the text and the
        # ID to match.
-       
        if( exists $args->{'is_lacuna'} && !exists $args->{'text'} ) {
-               $args->{'text'} = sprintf( "#LACUNA_%s#", $args->{'id'} );
+               $args->{'text'} = '#LACUNA#';
        } elsif( exists $args->{'is_start'} ) {
                $args->{'id'} = '#START#';  # Change the ID to ensure we have only one
                $args->{'text'} = '#START#';