View Single Post
 
Old 07-20-2016, 05:02 AM
Robert K S Robert K S is offline Windows 7 64bit Office 2007
Novice
 
Join Date: Jul 2016
Location: Cleveland, Ohio
Posts: 10
Robert K S is on a distinguished road
Default

Quote:
Originally Posted by Guessed View Post
For the job you describe here it would be WAY faster to do find/replaces instead of looping characters.
eg with wildcards on find "([! ])\[\[" and replace with "\1 [[" to ensure there is always a space in front of any opening double square brackets
That's great advice. Thank you!

EDIT: but it adds a space between deleted content and punctuation outside the deleted content, so I might end up with, for example, [[4]] , instead of [[4]], which is what is desired.

Maybe a cheap fix would be to only add whitespace (where it doesn't exist) between underlined text and [[, or between ]] and underlined text? That way it would at least fix [[this]]sort of thing when [[this]] sort of thing is desired.

Last edited by Robert K S; 07-20-2016 at 07:55 AM.
Reply With Quote