Commit 8d75865c by Matt Mascarenhas

cinera.c: Preserve the case of the markers' text

parent 4b9e1a2f
......@@ -14,7 +14,7 @@ typedef struct
version CINERA_APP_VERSION = {
.Major = 0,
.Minor = 5,
.Patch = 43
.Patch = 44
};
// TODO(matt): Copy in the DB 3 stuff from cinera_working.c
......@@ -3365,11 +3365,11 @@ HMMLToBuffers(buffers *CollationBuffers, template **BespokeTemplate, char *Filen
hsl_colour Colour;
StringToColourHash(&Colour, Anno->markers[MarkerIndex].marker);
CopyStringToBuffer(&Text,
"<span class=\"%s\" style=\"color: hsl(%d, %d%%, %d%%);\" data-hue=\"%d\" data-saturation=\"%d%%\">%s</span>",
"<span class=\"%s\" style=\"color: hsl(%d, %d%%, %d%%);\" data-hue=\"%d\" data-saturation=\"%d%%\">%.*s</span>",
Anno->markers[MarkerIndex].type == HMML_MEMBER ? "member" : "project",
Colour.Hue, Colour.Saturation, Colour.Lightness,
Colour.Hue, Colour.Saturation,
Readable);
StringLength(Readable), InPtr);
} break;
case HMML_CATEGORY:
......@@ -3389,7 +3389,7 @@ HMMLToBuffers(buffers *CollationBuffers, template **BespokeTemplate, char *Filen
HasFilterMenu = TRUE;
}
InsertCategory(&Topics, &LocalTopics, &Media, &LocalMedia, Anno->markers[MarkerIndex].marker);
CopyStringToBuffer(&Text, Readable);
CopyStringToBuffer(&Text, "%.*s", StringLength(Readable), InPtr);
} break;
case HMML_MARKER_COUNT: break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment