View Single Post
  #18 (permalink)  
Old June 27th, 2003, 04:41 PM
bluckcuck bluckcuck is offline
Friend of Wrox
 
Join Date: May 2003
Posts: 202
Thanks: 0
Thanked 1 Time in 1 Post
Default

Okay...

I've made some improvements (hopefully ) to the formatting handling.

Posts should now retain all of the author's intended spaces in both the HTML and text subscription emails. This will occur both inside and outside the [code] tags.

This solution will retain multiple spaces - regardless of the number. To encourage the use of the [t] tags, any occurrences of 4 consecutive spaces will be converted to the tab tags. Occurences of less than 4 will be left as spaces.

For example:

 One character indented
  Two character indented
     Five characters indented (converted to [t] and a space)
This line has embedded spaces that are retained


Try it out and let me know what you think.

Bruce Luckcuck
Director, Applications & Support Services
Wiley Publishing, Inc.