Ticket #2855: rapidxml.hpp.diff1

File rapidxml.hpp.diff1, 907 bytes (added by Chris, 14 years ago)

This small patch fixes the problem.

Line 
1*** old1/rapidxml.hpp
2--- new1/rapidxml.hpp
3***************
4*** 2131,2137 ****
5 {
6 // Skip whitespace between > and node contents
7 Ch *contents_start = text; // Store start of node contents before whitespace is skipped
8! skip<whitespace_pred, Flags>(text);
9 Ch next_char = *text;
10
11 // After data nodes, instead of continuing the loop, control jumps here.
12--- 2131,2138 ----
13 {
14 // Skip whitespace between > and node contents
15 Ch *contents_start = text; // Store start of node contents before whitespace is skipped
16! if (Flags & parse_trim_whitespace)
17! skip<whitespace_pred, Flags>(text);
18 Ch next_char = *text;
19
20 // After data nodes, instead of continuing the loop, control jumps here.