Thanks Fredrik, Peter and John for your help.
John, I especially enjoyed your line by line assasination of my code,
keep it up.
I'm not a programmer, I dislike programming, I'm bad at it. I just
agreed to do this to help someone out, I didn't even know what python
was 3 days ago.
In case you wer
Thanks so much, a really elegant solution indeed.
I have another question actually which I'm praying you can help me
with:
with regards to the .jpg conversion to .jpg]] and .gif -> .gif]]
this works, but only when .jpg/.gif is on it's own line.
i.e:
.jpg
will get converted to:
.jpg]]
but
I
Cheers for the reply.
But I'm still having a spot of bother with the === addition
it would seem that if there is no whitespace after the ===test
then the new === gets added to the next line
e.g file contains:
===test (and then no whitesapace/carriage returns or anything)
and the result is:
==
I've been working on some code to search for specific textstrings and
act upon them insome way. I've got the conversion sorted however there
is 1 problem remaining.
I am trying to work out how to make it find a string like this "==="
and when it has found it, I want it to add "===" to the end of t