Quote:
Originally Posted by Guessed
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.