LiteralWhiteSpace-Talk

Summary: Talk page for LiteralWhiteSpace.
Maintainer: HansB
Users: +3 (View / Edit)

This space is for User-contributed commentary and notes. Please include your name and a date along with your comment.


> bug which adds an extra empty line if a new paragraph after an empty line starts with empty spaces at the beginning of the line.

 

Instead of solving the problem of not having to use ugly markup all over the place, this recipe bug introduces too much whitespace which can be just as annoying and impossible to remove.  Petko, can you please fix this bug? --gnuzoo

 

HansB: Fixed with latest update. 2024-03-17

 

I put 2 paragaphs under "Normal text ↑" in the sandbox on the main page and it puts too much vertical whitespace in front of the 2 paragraphs. --gnuzoo


This no longer works under php 5.5, although the fixes are trivial. In toto, they are:

diff whitespace.php whitespace.bak 
27c27
< Markup('^ws', '<^img', '/^(\\s+)(.*?)/', "WSIndent2($m[1])");
---
> Markup('^ws', '<^img', '/^(\\s+)(.*?)/e', "WSIndent2('$1')");
46c46
< Markup('spacing', '>style', "/(\\s{2,7})(?![^<]*>)/", "WSReplace($m[1])");
---
> Markup('spacing', '>style', "/(\\s{2,7})(?![^<]*>)/e", "WSReplace('$1')");

 

update: spoke too soon. Will have to revisit
(Ross Grady, Nov 8, 2015)

 

You probably don't need to quote $m[1], see the corrected lines of code. --Petko November 08, 2015, at 11:50 AM

 

Talk page for the LiteralWhiteSpace recipe (users).