",
+ SanitisePunctuation(HMML.annotations[AnnotationIndex].markers[MarkerIndex].marker));
+ HasCategory = TRUE;
+ }
+ else
+ {
+ CopyStringToBuffer(&Category, "",
+ SanitisePunctuation(HMML.annotations[AnnotationIndex].markers[MarkerIndex].marker));
+ }
+ CopyStringToBuffer(&AnnotationClass, " cat_%s",
+ SanitisePunctuation(HMML.annotations[AnnotationIndex].markers[MarkerIndex].marker));
+NextCategoryInNode: ++MarkerIndex;
+ }
CopyStringToBuffer(&AnnotationClass, "\"");
CopyBuffer(&AnnotationClass, &AnnotationHeader);
@@ -268,6 +397,14 @@ HMML.annotations[AnnotationIndex].author);
" %s",
HMML.annotations[AnnotationIndex].time);
+ if(HasCategory)
+ {
+ CopyStringToBuffer(&Category, "");
+ CopyBuffer(&Category, &Text);
+ }
+
+ *Text.Ptr = '\0';
+
CopyBuffer(&Text, &Annotation);
CopyStringToBuffer(&Annotation, "
\n"
@@ -309,7 +446,7 @@ HMML.annotations[AnnotationIndex].time);
ClaimBuffer(MemoryArena, &ClaimedMemory, &Master, 1024 * 512);
CopyStringToBuffer(&Master,
-"\n"
+"\n"
" \n"
" \n"
"\n"