From 29f0826432f80620f91832513beafedbd946a09c Mon Sep 17 00:00:00 2001 From: Shawn Hussey Date: Thu, 1 Sep 2011 13:09:35 -0230 Subject: Fixing markup escaping for slice2confluence. --- cpp/src/slice2confluence/ConfluenceOutput.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'cpp/src/slice2confluence/ConfluenceOutput.h') diff --git a/cpp/src/slice2confluence/ConfluenceOutput.h b/cpp/src/slice2confluence/ConfluenceOutput.h index 70f68b24132..294b0fb3054 100644 --- a/cpp/src/slice2confluence/ConfluenceOutput.h +++ b/cpp/src/slice2confluence/ConfluenceOutput.h @@ -1,4 +1,6 @@ #include +#include +#include #ifndef CONFLUENCE_OUTPUT #define CONFLUENCE_OUTPUT @@ -41,6 +43,20 @@ public: std::string currentElement() const; + /** + * Wrap sections in these markers to prevent them from being confluence-escaped. + * The regular confluence-escaping process will remove these markers. + */ + const static std::string TEMP_ESCAPER_START; // wrap sections + const static std::string TEMP_ESCAPER_END; // wrap sections + + /** + * Gets the start and end positions of all TEMP_ESCAPED sections of the given string. + */ + std::list > getMarkerLimits(const std::string&); + + std::string removeMarkers(std::string); + private: std::string escape(const ::std::string&) const; -- cgit v1.2.3