BBEdit strips spaces from the ends of my lines when it saves the file

1,046 views
Skip to first unread message

Philip Sharman

unread,
Mar 27, 2012, 8:06:30 PM3/27/12
to bbe...@googlegroups.com
Does anyone know why BBEdit is stripping all whitespace off the ends of my lines when I save the file?  (The spaces are there okay until I save.  Then BBEdit deletes them.)  This happens for lines anywhere in the file, not just at the end.

Normally I wouldn't notice, but the inability to put two spaces at the end of line interferes with Markdown formatting.  (This behavior happens regardless of whether the file is save as .markdown or .txt.)

I can't see any preference that controls this, and I can't find anything on the web or in the mailing list.

Thanks,
   Philip.

P.S.
     I'm using BBEdit 10.1.1 (3140).
                                

François Schiettecatte

unread,
Mar 27, 2012, 9:14:45 PM3/27/12
to bbe...@googlegroups.com
Philip

See the "Text Files" preferences, there is a checkbox for "Strip trailing whitespace".

François

> --
> You received this message because you are subscribed to the
> "BBEdit Talk" discussion group on Google Groups.
> To post to this group, send email to bbe...@googlegroups.com
> To unsubscribe from this group, send email to
> bbedit+un...@googlegroups.com
> For more options, visit this group at
> <http://groups.google.com/group/bbedit?hl=en>
> If you have a feature request or would like to report a problem,
> please email "sup...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Bruce Van Allen

unread,
Mar 27, 2012, 9:19:19 PM3/27/12
to bbe...@googlegroups.com
On 2012-03-27, Philip Sharman wrote:

>I can't see any preference that controls this, and I can't find anything on
>the web or in the mailing list.

Keep looking, namely at Preferences->Test Files->Strip Trailing Whitespace.

HTH


- Bruce

_bruce__van_allen__santa_cruz_ca_

TJ Luoma

unread,
Mar 27, 2012, 9:23:18 PM3/27/12
to bbe...@googlegroups.com
On Mar 27, 2012, at 8:54 PM, Philip Sharman <philip....@gmail.com> wrote:

> Does anyone know why BBEdit is stripping all whitespace off the ends of my lines when I save the file? (The spaces are there okay until I save. Then BBEdit deletes them.) This happens for lines anywhere in the file, not just at the end.
>
>

> I can't see any preference that controls this, and I can't find anything on the web or in the mailing list.

Preferences > Text Files > Strip Trailing Whitespace

TjL

Reply all
Reply to author
Forward
0 new messages