[gnote] Fix get_renamed_note_xml



commit 1ae43e6f214d5a16cafcfba31cd45cc69e7405f4
Author: Aurimas Äernius <aurisc4 gmail com>
Date:   Sun Feb 26 21:31:52 2012 +0200

    Fix get_renamed_note_xml
    
    libpcrecpp uses \1 for backreferencing, rather than $1.

 src/note.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/note.cpp b/src/note.cpp
index 0c2abdb..113d28c 100644
--- a/src/note.cpp
+++ b/src/note.cpp
@@ -1412,7 +1412,7 @@ namespace gnote {
     std::string titleContentPattern =
       str(boost::format("<note-content([^>]*)>\\s*%1%") % old_title);
     std::string titleContentReplacement =
-      str(boost::format("<note-content$1>%1%") % new_title);
+      str(boost::format("<note-content\\1>%1%") % new_title);
     std::string updated_xml2 = sharp::string_replace_regex(updated_xml, titleContentPattern, 
                                                            titleContentReplacement);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]