Skip to content

Commit

Permalink
Flush all accamulated characters at the end of loop
Browse files Browse the repository at this point in the history
To apply any substitutions in them. Closes #496
  • Loading branch information
reznikmm committed May 13, 2018
1 parent 3892a70 commit 41e794f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ package body XML.Templates.Processors is

Self.Parameters.Include (Name, Holder);
Process_Stream (Self, Self, Stream, Success);
Self.Process_Characters (Success);

if not Success then
return;
Expand Down
8 changes: 4 additions & 4 deletions matreshka/testsuite/xml/TN-454/test_454.adb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2016, Vadim Godunko <[email protected]> --
-- Copyright © 2016-2018, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
Expand Down Expand Up @@ -86,10 +86,10 @@ procedure Test_454 is
& "<html xmlns='http://www.w3.org/1999/xhtml'>"
& " <body>"
& " post 1"
& " post 2 -> subitem 1-2"
& " post 2 -> subitem 1-2"
& " post 1 -> subitem 1-1"
& " post 1 -> subitem 1-2"
& " post 2"
& " post 2 -> subitem 2-2"
& " post 2 -> subitem 2-1"
& " post 2 -> subitem 2-2"
& " </body></html>");

Expand Down

0 comments on commit 41e794f

Please sign in to comment.