Skip to content

Commit

Permalink
Merge branch 'Release02x01'
Browse files Browse the repository at this point in the history
  • Loading branch information
gac410 committed Nov 10, 2016
2 parents c124831 + 246450c commit 3a028c5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
3 changes: 2 additions & 1 deletion WysiwygPlugin/lib/Foswiki/Plugins/WysiwygPlugin/TML2HTML.pm
Expand Up @@ -745,15 +745,16 @@ s/((^|(?<=[-*\s(]))$Foswiki::regex{linkProtocolPattern}:[^\s<>"]+[^\s*.,!?;:)<])
elsif ($inList
&& $line =~ s/^([ \t]+)/$this->_hideWhitespace("\n$1")/e )
{

# Extend text of previous list item by dropping through
$result[-1] .= $line;
$line = '';

}
elsif ( $line =~ /^<hr class="TMLhr"/ ) {
push( @result, '</p>' ) if $inParagraph;
$this->_addListItem( \@result, '', '', '' ) if $inList;
$inParagraph = 0;
$inList = 0;
}
elsif ( $line eq $tableAndMacrosDivStart ) {
push( @result, '</p>' ) if $inParagraph;
Expand Down
16 changes: 16 additions & 0 deletions WysiwygPlugin/test/unit/WysiwygPlugin/TranslatorTests.pm
Expand Up @@ -488,6 +488,22 @@ HERE
HERE
},

{
exec => ROUNDTRIP,
name => 'HRFollowinglist',
tml => <<'HERE',
* List entry
---
New para
HERE
finaltml => <<'HERE',
* List entry
---
New para
HERE
},

{
exec => ROUNDTRIP,
name => 'centering',
Expand Down

0 comments on commit 3a028c5

Please sign in to comment.