Malabarba / latex-extra

A series of usability improvements for Emacs latex-mode.
GNU General Public License v3.0
69 stars 14 forks source link

clean-fill-indent-environment does not respect sentence-end-double-space #21

Closed moble closed 8 years ago

moble commented 8 years ago

The latex-extra provided command latex/clean-fill-indent-environment does not seem to respect the variable sentence-end-double-space. I have the latter set to t, which means that filling should leave two spaces after the end of a sentence. However, when I run this command on text that already has those spaces, they disappear. I am not alone in disliking this behavior, but more importantly it breaks other functions I have that assume that double space to figure out what constitutes a sentence end as opposed to an abbreviation.

Malabarba commented 8 years ago

Yeah, that's a bug. It removes extra whitespace to fix indentation and cleanup equations, breaking sentence ends was not intentional.

moble commented 8 years ago

Seems to do the job for me. Thanks!

Malabarba commented 8 years ago

Great!