Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,12 @@ type internal TextSanitizingCollector(collector, ?lineLimit: int) =

interface ITaggedTextCollector with
member _.Add taggedText =
// TODO: bail out early if line limit is already hit
match taggedText.Tag with
| TextTag.Text -> reportTextLines taggedText.Text
| _ -> addTaggedTextEntry taggedText
match lineLimit with
| Some lineLimit when lineLimit < count -> ()
| _ ->
match taggedText.Tag with
| TextTag.Text -> reportTextLines taggedText.Text
| _ -> addTaggedTextEntry taggedText

member _.IsEmpty = isEmpty
member _.EndsWithLineBreak = isEmpty || endsWithLineBreak
Expand Down