Skip to main content

diff_text_view

Function diff_text_view 

Source
pub fn diff_text_view(old: &str, new: &str, options: &TextOptions) -> String
Expand description

Compares two plain-text snapshots (old, new) in the review presentation options.format names.

Existing CriticMarkup stays inside the changed lines unless acceptance is requested. Word mode always accepts both inputs and emits only the changed lines with newly-generated CriticMarkup. Clipping (the window) happens after comparison, so it cannot hide a hunk or change its line ranges.