Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Item13207: add whitespaces in TML-sensitive areas
otherwise they won't be translated to HTML
  • Loading branch information
MichaelDaum committed Jan 14, 2015
1 parent 70061ba commit fe71c45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion WysiwygPlugin/lib/Foswiki/Plugins/WysiwygPlugin/TML2HTML.pm
Expand Up @@ -861,7 +861,9 @@ s/((^|(?<=[-*\s(]))$Foswiki::regex{linkProtocolPattern}:[^\s<>"]+[^\s*.,!?;:)<])
}
$line =~ s/(\s\s+)/$this->_hideWhitespace($1)/ge;
if ( defined $result[-1] ) {
$result[-1] .= $line;
$result[-1] .= " "
. $line
; # Item13207: add a whitespace here so that any following TML is recognized
$line = '';
}
}
Expand Down
2 changes: 1 addition & 1 deletion core/lib/Foswiki/Render.pm
Expand Up @@ -1138,7 +1138,7 @@ sub _addTHEADandTFOOT {
}
$i--;
}
$lines->[ $i++ ] = "<table class='foswikiTable'>";
$lines->[ $i++ ] = " <table class='foswikiTable'>";

if ($headLines) {
splice( @$lines, $i++, 0, '<thead>' );
Expand Down

0 comments on commit fe71c45

Please sign in to comment.