Function crowbook_text_processing::escape::nb_spaces_tex
[−]
[src]
pub fn nb_spaces_tex<'a, S: Into<Cow<'a, str>>>(input: S) -> Cow<'a, str>
Escape non breaking spaces for LaTeX, replacing them with ~
.
Example
use crowbook_text_processing::escape; let s = escape::nb_spaces_tex("Des espaces insécables ? Ça alors !"); assert_eq!(&s, "Des espaces insécables~? Ça alors~!");