\n", HMML.metadata.annotator, HMML.metadata.id);
-
CopyBuffer(&Working, &Out);
int DataRef = 1;
for(int AnnotationIndex = 0; AnnotationIndex < HMML.annotation_count; ++AnnotationIndex)
{
+ sprintf(Working.Location,
+"
\n", TimecodeToSeconds(HMML.annotations[AnnotationIndex].time), AnnotationIndex);
+ sprintf(Working.Location, " data-ref=\"%d\"", AnnotationIndex);
+ CopyBuffer(&Working, &Out);
for(int RefLocalIndex = 0; RefLocalIndex < HMML.annotations[AnnotationIndex].reference_count; ++RefLocalIndex)
{
@@ -262,17 +293,12 @@ HMML.annotations[AnnotationIndex].time);
}
CopyStringToBuffer(InPtr, &Text);
}
- else
- {
- sprintf(Working.Location,
-"
\n", TimecodeToSeconds(HMML.annotations[AnnotationIndex].time));
- CopyStringToBuffer(InPtr, &Text);
- }
+ *Out.Ptr++ = '>';
+ *Out.Ptr++ = '\n';
+ CopyStringToBuffer(InPtr, &Text);
*Text.Ptr = '\0';
- CopyBuffer(&Working, &Out);
-
sprintf(Working.Location,
"
%s%s
\n"
"
\n"
@@ -288,10 +314,9 @@ HMML.annotations[AnnotationIndex].time);
Text.Location,
HMML.annotations[AnnotationIndex].time,
Text.Location);
+ CopyBuffer(&Working, &Out);
ClaimedMemory -= Text.Size;
-
- CopyBuffer(&Working, &Out);
}
sprintf(Working.Location,
@@ -364,11 +389,8 @@ HMML.annotations[AnnotationIndex].time);
" \n"
" \n"
"