]> lifelog.hopto.org Git - LifeLog.git/commitdiff
bug 7 fix
authorWill Budic <redacted>
Tue, 4 Feb 2020 03:16:12 +0000 (14:16 +1100)
committerWill Budic <redacted>
Tue, 4 Feb 2020 03:16:12 +0000 (14:16 +1100)
htdocs/cgi-bin/main.cgi
htdocs/cgi-bin/wsrc/main.js

index 341e3638394cb70a9839bc41f5204729d6153aa7..91595916d9b735e2a5a16eeebb2ec7bc20aa3bbe 100755 (executable)
@@ -615,7 +615,7 @@ qq(\n<img src="$lnk" width="$imgw" height="$imgh" class="tag_FRM"/>);
         }
 
         if ( $rtf > 0 ) {
-            $log .= qq(<hr><button id="btnRTF" onClick="return loadRTF(true, $id);">`RTF</button>);
+            $log .= qq(<hr><button id="btnRTF" onClick="return loadRTF(true, $id);">RTF</button>);
         }
 
         if($af==2){
index 4cf0abbfc01f9edfb438db97d209baff639567f1..4bbb0fd0df44db6060cd9fd203fbe5dd97671844 100644 (file)
@@ -285,7 +285,8 @@ function decodeToHTMLText(txt) {
 }
 
 function decodeToText(txt) {
-    txt = txt.replace(/`RTF$/, "");
+    //bug 7 fix
+    txt = txt.replace(/<hr>.*RTF<\/button>/gm, "");
     txt = txt.replace(/<br\s*[\/]?>/gi, "\n");
     return txt;
 }