Update of /cvsroot/boost/boost/tools/quickbook/detail
In directory
sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv26113/tools/quickbook/detail
Modified Files:
actions.cpp actions_class.cpp actions_class.hpp
Log Message:
Implement template eval escape "[`xyz]".
Index: actions.cpp
===================================================================
RCS file: /cvsroot/boost/boost/tools/quickbook/detail/actions.cpp,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- actions.cpp 3 Jul 2007 09:19:08 -0000 1.52
+++ actions.cpp 5 Jul 2007 01:56:15 -0000 1.53
@@ -495,7 +495,14 @@
bool is_block = (iter != body.end()) && ((*iter == '\r') || (*iter
== '\n'));
bool r = false;
- if (!is_block)
+ if (actions.template_escape)
+ {
+ // escape the body of the template
+ // we just copy out the literal body
+ result = body;
+ r = true;
+ }
+ else if (!is_block)
{
// do a phrase level parse
iterator first(body.begin(), body.end(),
actions.filename.native_file_string().c_str());
Index: actions_class.cpp
===================================================================
RCS file: /cvsroot/boost/boost/tools/quickbook/detail/actions_class.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- actions_class.cpp 27 Feb 2007 15:22:15 -0000 1.9
+++ actions_class.cpp 5 Jul 2007 01:56:15 -0000 1.10
@@ -61,6 +61,7 @@
, list_indent(-1)
, template_info()
, template_depth(0)
+ , template_escape(false)
, templates()
// actions
Index: actions_class.hpp
===================================================================
RCS file: /cvsroot/boost/boost/tools/quickbook/detail/actions_class.hpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- actions_class.hpp 27 Feb 2007 15:22:15 -0000 1.9
+++ actions_class.hpp 5 Jul 2007 01:56:15 -0000 1.10
@@ -87,6 +87,7 @@
int list_indent;
string_list template_info;
int template_depth;
+ bool template_escape;
template_stack templates;
// push/pop the states and the streams
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs