# pane.CaptureOptions.trim_blank_cells

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

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

Drop the positions at each line's end that hold no character at all.

A pane's grid is rectangular, so a short line is padded with cells that
were never written. tmux includes them unless told not to; this is its
`-T`. Distinct from [`Self::trailing_spaces`], which is about spaces a
program actually printed -- one asks for the pane's shape, the other
for what was written into it.

[`Self::join_wrapped`] implies this.

## Example

```rust
use libtmux::CaptureOptions;

let written = CaptureOptions::visible().trim_blank_cells();
assert_ne!(written, CaptureOptions::visible());
```
