Skip to content

Commit

Permalink
Item9480: Fix ZoneTests: Foswikirev:8644 changed newline behaviour sl…
Browse files Browse the repository at this point in the history
…ightly.

When rendering body/head explicitly,

%RENDERZONE{"body"}%
foo
</body>

Now comes out as:
<body zone content>

foo
<body>

And reading the code, that is probably what it should have been doing all along,
although I'm not sure that I entirely agree it should be that way

git-svn-id: http://svn.foswiki.org/trunk@8684 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
PaulHarvey authored and PaulHarvey committed Aug 23, 2010
1 parent 4899e32 commit 99e1232
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions UnitTestContrib/test/unit/ZoneTests.pm
Expand Up @@ -427,8 +427,7 @@ sub test_explicit_RENDERZONE_no_optimization {
%RENDERZONE{"head"}%
<!--end of rendered head-->
%ADDTOZONE{"head" id="head1" text="head_1"}%
%ADDTOZONE{"body" id="body1" text="body_1" requires="head1"}%
</head>
%ADDTOZONE{"body" id="body1" text="body_1" requires="head1"}%</head>
<body>
%RENDERZONE{"body"}%
<!--body-->
Expand Down Expand Up @@ -467,8 +466,7 @@ sub test_explicit_RENDERZONE_with_optimization {
</head>
<body>
%RENDERZONE{"body"}%
<!--body-->
</body>
<!--body--></body>
HERE

my $expect = <<'HERE';
Expand Down

0 comments on commit 99e1232

Please sign in to comment.