-
2009-09-04
keylevel
Forcing a newline using markup (e.g like\\ this) results in a space being inserted at the start of the continuation line. The html for the above would look like:
<p>
line<br/>
[space]this
</p>
This is not a problem for the html renderer as browsers simply remove the space at the start of the lines.
However, it does affect the output of the .odt renderer where the space is visible in the exported document.
I'm willing to look at a fix for this is someone can point me to the relevant bit of code ;-)
-
2009-09-07
keylevel
I think this just needs the
$this->Lexer->addSpecialPattern ( '\x5C{2}(?=\s)', $mode, 'linebreak' );
line of Doku_Parser_Mode_linebreak in inc/parser.php changing to
$this->Lexer->addSpecialPattern ( '\x5C{2}\s(?=.)', $mode, 'linebreak' );
so that the pattern consumes the whitespace that forms part of the markup.
-
2009-10-04
ChrisS
The updated pattern doesn't follow the comment. Its ok to swallow a space or a tab, but not a new line. New lines start some syntax modes, swallowing them could break some pages.