"Rob Church" <robchur(a)gmail.com> wrote in
message news:e92136380612161920k7469d462gf2b73e4316964eed@mail.gmail.com...
On 17/12/06, Jax <cybercorecentre(a)gmail.com>
wrote:
As you see if you copy text files to the
mediawiki then some line will
overruns the border and after you got thousands of pages in your wiki it
can't be fix by hand. This wiki is not public, I need to maintain it for
my company so I can't just ask someone to setup a bot to fix it even if
that's a solution.
The problem seems to be that some lines prefixed with spaces are
creeping in from the source text. MediaWiki treats this as a cue to
enter <pre> mode, which means that formatting and line breaks are up
to the user. To correct this, delete the preceding spaces at the start
of each line.
To fix this in bulk, you could write a quickie maintenance script
which whizzes through all pages in the database (or just those you
specify) and performs this edit for you, saving the page if changes
were made.
If the pages are text files, then presumably there is no wiki markup in it
anyway, therefore you should wrap the whole page in <nowiki> tags.
You will need to remove the tags and perform any clean-up (e.g. removing
leading spaces, as pointed out by Rob) if you want to introduce wiki markup
into the page at a later date.
- Mark Clements (HappyDog)