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

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2190
  • Karma: +37/-3
    • 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.
    • 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
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: 2190
  • Karma: +37/-3
    • 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.