# pane.CaptureOptions.trailing_spaces

- **Module:** pane.CaptureOptions
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/pane.rs#L1514
- **Page:** https://libtmux.org/en/rs/latest/reference/pane-captureoptions-trailing_spaces/

```
pane.CaptureOptions.trailing_spaces(mut) -> Self
```

Keep the spaces tmux would otherwise strip from each line's end.

`capture-pane` trims trailing spaces unless told not to, so a captured
line is normally shorter than the pane is wide and a caller comparing
against what a program printed sees the difference. This is tmux's
`-N`.

[`Self::join_wrapped`] already keeps them, and additionally joins
lines the pane wrapped; this keeps them without joining anything.

## Example

```rust
use libtmux::CaptureOptions;

let exact = CaptureOptions::visible().trailing_spaces();
assert_ne!(exact, CaptureOptions::visible());
```
