Author Topic: How to keep the white space at end of line?  (Read 2252 times)

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2183
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
How to keep the white space at end of line?
« on: March 25, 2009, 11:47:18 am »
By default editor trims trailing white space (spaces, tabs) when you save the file.

To disable this behaviour and keep contents as it is, you can unset flag Trim white space at the end of line, which can be found in Tools -> Options -> Fromatting -> Do on Save.

Offline Arthur

  • Registered User
  • Hero Member
  • *
  • Posts: 653
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • View Profile
    • My Blog
Re: How to keep the white space at end of line?
« Reply #1 on: March 25, 2009, 03:27:55 pm »
is there a way to also substitute the tabs to space characters at save file time?

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
    • View Profile
Re: How to keep the white space at end of line?
« Reply #2 on: March 25, 2009, 04:28:50 pm »
is there a way to also substitute the tabs to space characters at save file time?

I think not "on save",  ... but while editing (see "Tools -> Options -> Formatting ")

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2183
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: How to keep the white space at end of line?
« Reply #3 on: March 25, 2009, 11:44:15 pm »
Hello Arthur,

checkong the code, I have found interesting thing...

It should work already, if you have TabsToSpaces set, as mentioned by Stefan.
So the option controls what should be done on editing and in addition, should convert tabs to spaces on save of document.

The same should also work if you have Tabs and Spaces mode set to Auto and initially in the content were not tabs (should be enough content for analysis).

Best regards,
Alex.

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
1744 Views
Last post April 16, 2009, 09:26:28 pm
by alex
1 Replies
2141 Views
Last post October 21, 2010, 02:22:24 pm
by alex
2 Replies
1929 Views
Last post November 19, 2010, 03:53:45 pm
by scunliffe
0 Replies
1258 Views
Last post March 17, 2011, 08:10:20 pm
by Stefan
1 Replies
1006 Views
Last post October 07, 2015, 03:21:49 pm
by alex