Searched hist:"113171 bb2c574564644d283fd1ae323072dfa865" (Results 1 – 2 of 2) sorted by relevance
| /dokuwiki/inc/Parsing/Handler/ |
| H A D | Preformatted.php | 113171bb2c574564644d283fd1ae323072dfa865 Tue May 05 20:00:11 UTC 2026 Andreas Gohr <gohr@cosmocode.de> Preformatted: strip leading/trailing blank-line padding from body
The lexer's `\n ` continuation pattern eats the indent off blank-but-indented source lines, leaving a `\n` in the rewriter buffer for each one. Trim those padding newlines before emitting so the preformatted body starts and ends on a non-blank line, as GFM example #87 requires. Whitespace-only blocks are still skipped entirely.
Adds two PreformattedTest cases pinning the new behavior.
|
| /dokuwiki/_test/tests/Parsing/ParserMode/ |
| H A D | PreformattedTest.php | 113171bb2c574564644d283fd1ae323072dfa865 Tue May 05 20:00:11 UTC 2026 Andreas Gohr <gohr@cosmocode.de> Preformatted: strip leading/trailing blank-line padding from body
The lexer's `\n ` continuation pattern eats the indent off blank-but-indented source lines, leaving a `\n` in the rewriter buffer for each one. Trim those padding newlines before emitting so the preformatted body starts and ends on a non-blank line, as GFM example #87 requires. Whitespace-only blocks are still skipped entirely.
Adds two PreformattedTest cases pinning the new behavior.
|