[pmwiki-users] leading space rule? what rule?

Américo Albuquerque aalbuquerque at lanowar.sytes.net
Thu May 25 17:37:23 CDT 2006


I've made a a script that does just that. Just copy it to your cookbook
and add it to your config. If needed I can add it to the cookbook in
pmwiki.org

Regards,
Americo Albuquerque

----- Original Message -----
Subject: Re: [pmwiki-users] leading space rule? what rule?
Date: Thu, 25 May 2006 23:33:54 +0200 (CEST)
From: christian.ridderstrom at gmail.com

On Thu, 25 May 2006, Patrick R. Michaud wrote:

 > On Thu, May 25, 2006 at 11:40:44AM +0200,
christian.ridderstrom at gmail.com wrote:
 >>
 >> FWIW, I also think it's a mixed blessing to let lines starting with
space
 >> result in preformatted text. I think the reason for this choice is
mostly
 >> historic and then it's just stuck around...
 >
 > Historic tradition does play a part here, but also using leading
 > whitespace for preformatted text does tend to do the right thing for
 > many applications. If nothing else, a number of other wikis (including
 > MediaWiki) use this particular convention, so it's worth keeping it.

I just wonder if the other wikis have it for historic tradition ;-)

 >> On Wed, 24 May 2006, Scott Connard wrote:
 >>> Just to throw my 2 cents in...I agree (more or less) with Jo. The
 >>> leading space markup is ugly and not only that but it actually leaves
 >>> the space in the output so the line is indented one space. Yuck and
 >>> a half.
 >
 > For those who want to eliminate the "one space indentation"
 > that results from placing a space at the beginning of preformatted
 > text markup, one can do the following to eliminate the one space
 > of indentation:
 >
 > Markup('^ ', 'block', '/^\\s/', '<:pre,1>');

How can I disable the space=>preformatted markup? I think I'd like to try
this on the wikis I run. If you tell me how, I'll add it as a cookbook
recipe. And also what you just wrote for getting rid of "one space
indentation".

/Christian

-- 
Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
---------------------------------------------------------------------------------------------------
Texto adicionado pelo Panda Platinum 2005 Internet Security:

Trata-se de uma mensagem de correio não solicitada (SPAM), faça clique
no link seguinte para reclassificar:
http://127.0.0.1:6083/Panda?ID=pav_24865&SPAM=true
---------------------------------------------------------------------------------------------------

_______________________________________________
pmwiki-users mailing list
pmwiki-users at pmichaud.com
http://host.pmichaud.com/mailman/listinfo/pmwiki-users










More information about the pmwiki-users mailing list