]> git.lyx.org Git - features.git/blobdiff - src/xml.h
DocBook: fix XML in comments (-- forbidden for some historical reason).
[features.git] / src / xml.h
index 5478a66361d8fe099d70a030967a556634c9a662..5afdcf53e921995621f6b8f938eff4a0e86feaf8 100644 (file)
--- a/src/xml.h
+++ b/src/xml.h
@@ -82,7 +82,8 @@ public:
        enum EscapeSettings {
                ESCAPE_NONE,
                ESCAPE_AND, // meaning &
-               ESCAPE_ALL  // meaning <, >, &, at present
+               ESCAPE_ALL, // meaning <, >, &, at present
+               ESCAPE_COMMENTS // Anything that is forbidden within comments
        };
        /// Sets what we are going to escape on the NEXT write.
        /// Everything is reset for the next time.
@@ -151,7 +152,7 @@ docstring escapeChar(char c, XMLStream::EscapeSettings e);
 docstring cleanID(docstring const &orig);
 
 /// returns a unique numeric ID
-docstring const uniqueID(docstring const & label);
+docstring uniqueID(docstring const & label);
 
 struct FontTag;
 struct EndFontTag;