Forum:Disabling automatic preformatting

Paragraphs that are prefixed with space are not formatted, and are displayed as very long lines. Is there a way to disable this feature for specific documents? (i.e. tell the parser to ignore space at start of line)


 * Lines with spaces prefixed are put into  tags. This is normal mediawiki wikitext formatting. If they wern't interpreted thusly, (if this parsing function were disabled) the spaces would still be removed in the HTML as whitespaces. Paragraph breaking is easily done by adding a blank line between paragraphs, which creates a new   block. --Splarka (talk) 06:33, 8 December 2006 (UTC)


 * "Lines with spaces prefixed are put into  tags" - Is there a way to disable this feature in a specific document? (I have a document that includes many other documents, and the inclusion produces spaces in unexpected places... the easiest way to solve it is to disable the automatic "pre" feature, if it is possible).


 * Nope, not possible. But if you have a good text editor with a regex replace and you let it wrap over lines then you should be able to remove the whitespace using a replace like this: Replace "([\n\r]+)[ \t]*" With "\1" . That one should remove all spaces and tabs at the beginning of the lines while preserving the line breaks properly. Actualy, if you knew how to use the pywikipedia bot, you could use it's replace script to do that work. Dantman (Talk) 07:13, 8 December 2006 (UTC)