Handle single-line comments for block ignore

When the block ignore directive is active, it is possible that the
corresponding end ignore directive is written using a single-line
comment.

This means that lines beginning with a single line comment cannot be set
to the empty string value during the ignore directive processing.

References:

  Closes issue #1453