% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/snapshot.R
\name{mask_ignored_lines}
\alias{mask_ignored_lines}
\title{Mask \code{[ignored]} Lines in New Snapshot Text}
\usage{
mask_ignored_lines(old_text, new_text)
}
\arguments{
\item{old_text}{Character vector of the stored snapshot lines.}

\item{new_text}{Character vector of the freshly generated snapshot lines.}
}
\value{
\code{new_text} with \code{[ignored]} substituted at matching
positions.
}
\description{
Any line in \code{old_text} that equals \code{"[ignored]"} (after trimming
whitespace) causes the corresponding line in \code{new_text} to be replaced
with \code{"[ignored]"}, so that known-volatile lines never trigger a
snapshot failure.  Lines beyond the shorter vector are left unchanged.
}
\details{
This helper is used both during comparison (so the lines are skipped) and
when writing an updated snapshot (so the markers are preserved).
}
\keyword{internal}
