Revision: 13312
          http://sourceforge.net/p/skim-app/code/13312
Author:   hofman
Date:     2023-02-26 17:02:39 +0000 (Sun, 26 Feb 2023)
Log Message:
-----------
don't add empty contents to fdf string

Modified Paths:
--------------
    trunk/PDFAnnotation_SKExtensions.m

Modified: trunk/PDFAnnotation_SKExtensions.m
===================================================================
--- trunk/PDFAnnotation_SKExtensions.m  2023-02-26 17:01:24 UTC (rev 13311)
+++ trunk/PDFAnnotation_SKExtensions.m  2023-02-26 17:02:39 UTC (rev 13312)
@@ -188,11 +188,12 @@
         }
         [fdfString appendString:@">>"];
     }
-    [fdfString appendFDFName:SKFDFAnnotationContentsKey];
-    [fdfString appendString:@"("];
-    if (contents)
+    if (contents) {
+        [fdfString appendFDFName:SKFDFAnnotationContentsKey];
+        [fdfString appendString:@"("];
         [fdfString appendString:[[contents 
lossyStringUsingEncoding:NSISOLatin1StringEncoding] 
stringByEscapingParenthesis]];
-    [fdfString appendString:@")"];
+        [fdfString appendString:@")"];
+    }
     if (modDate) {
         [fdfString appendFDFName:SKFDFAnnotationModificationDateKey];
         [fdfString appendFormat:@"(%@)", [modDate PDFDescription]];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to