[dokuwiki] Re: Hacking to recognise line break?
- From: Chris Smith <chris@xxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Fri, 26 May 2006 00:51:19 +0100
sports tg wrote:
I tried changing the RegEx to
'(?<!^|\n) *\n(?!\n)'
but it did not work.
Tom.
On 25/05/06, sports tg <sportstg@xxxxxxxxx> wrote:
You rock man! That all seems mighty fine and a breeze to "install".
Testing on a couple of documents looks good, but then I found one
where it
didnlt work, examining it it seems that there is a space between the
end of
the line and the line feed character for all of the lines - perhaps the
regular expression could be adjusted to allow for this?
A space preceding the end of the line should have no effect - it works
fine for me. To explain the pattern in DokuWiki terms,
match a newline when it isn't preceded by a new line or followed by a
new line. Also don't match if the new line is immediately preceded by a
match with another syntax mode.
Can you send me a copy of the page or point me at the link.
Chris
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- Follow-Ups:
- [dokuwiki] Re: Hacking to recognise line break?
- From: Terence J. Grant
- References:
- [dokuwiki] Hacking to recognise line break?
- From: sports tg
- [dokuwiki] Re: Hacking to recognise line break?
- From: Anika Henke
- [dokuwiki] Re: Hacking to recognise line break?
- From: sports tg
- [dokuwiki] Re: Hacking to recognise line break?
- From: Daniel Mitchell
- [dokuwiki] Re: Hacking to recognise line break?
- From: sports tg
- [dokuwiki] Re: Hacking to recognise line break?
- From: Chris Smith
- [dokuwiki] Re: Hacking to recognise line break?
- From: sports tg
- [dokuwiki] Re: Hacking to recognise line break?
- From: sports tg
Other related posts:
- » [dokuwiki] Hacking to recognise line break?
- » [dokuwiki] Re: Hacking to recognise line break?
- » [dokuwiki] Re: Hacking to recognise line break?
- » [dokuwiki] Re: Hacking to recognise line break?
- » [dokuwiki] Re: Hacking to recognise line break?
- » [dokuwiki] Re: Hacking to recognise line break?
- » [dokuwiki] Re: Hacking to recognise line break?
- » [dokuwiki] Re: Hacking to recognise line break?
- » [dokuwiki] Re: Hacking to recognise line break?
- » [dokuwiki] Re: Hacking to recognise line break?
- » [dokuwiki] Re: Hacking to recognise line break?
- » [dokuwiki] Re: Hacking to recognise line break?
- » [dokuwiki] Re: Hacking to recognise line break?
- » [dokuwiki] Re: Hacking to recognise line break?
- » [dokuwiki] Re: Hacking to recognise line break?
- » [dokuwiki] Re: Hacking to recognise line break?
- » [dokuwiki] Re: Hacking to recognise line break?
- » [dokuwiki] Re: Hacking to recognise line break?
- » [dokuwiki] Re: Hacking to recognise line break?
- » [dokuwiki] Re: Hacking to recognise line break?
- » [dokuwiki] Re: Hacking to recognise line break?
I tried changing the RegEx to '(?<!^|\n) *\n(?!\n)' but it did not work.
Tom.
On 25/05/06, sports tg <sportstg@xxxxxxxxx> wrote:
You rock man! That all seems mighty fine and a breeze to "install".
Testing on a couple of documents looks good, but then I found one where it
didnlt work, examining it it seems that there is a space between the end of
the line and the line feed character for all of the lines - perhaps the
regular expression could be adjusted to allow for this?
- [dokuwiki] Re: Hacking to recognise line break?
- From: Terence J. Grant
- [dokuwiki] Hacking to recognise line break?
- From: sports tg
- [dokuwiki] Re: Hacking to recognise line break?
- From: Anika Henke
- [dokuwiki] Re: Hacking to recognise line break?
- From: sports tg
- [dokuwiki] Re: Hacking to recognise line break?
- From: Daniel Mitchell
- [dokuwiki] Re: Hacking to recognise line break?
- From: sports tg
- [dokuwiki] Re: Hacking to recognise line break?
- From: Chris Smith
- [dokuwiki] Re: Hacking to recognise line break?
- From: sports tg
- [dokuwiki] Re: Hacking to recognise line break?
- From: sports tg