cinera.c: Enforce superscription of <sup> elements

This commit is contained in:
Matt Mascarenhas 2017-12-24 17:16:08 +00:00
parent e4c1446256
commit f6b85b5958
1 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ typedef struct
version CINERA_APP_VERSION = { version CINERA_APP_VERSION = {
.Major = 0, .Major = 0,
.Minor = 5, .Minor = 5,
.Patch = 14 .Patch = 15
}; };
// TODO(matt): Copy in the DB 3 stuff from cinera_working.c // TODO(matt): Copy in the DB 3 stuff from cinera_working.c
@ -2443,11 +2443,11 @@ AppendedIdentifier:
if(Anno->references[RefIndex].offset == Anno->references[RefIndex-1].offset) if(Anno->references[RefIndex].offset == Anno->references[RefIndex-1].offset)
{ {
CopyStringToBuffer(&Text, "<sup>,%d</sup>", RefIdentifier); CopyStringToBuffer(&Text, "<sup style=\"vertical-align: super;\">,%d</sup>", RefIdentifier);
} }
else else
{ {
CopyStringToBuffer(&Text, "<sup>%d</sup>", RefIdentifier); CopyStringToBuffer(&Text, "<sup style=\"vertical-align: super;\">%d</sup>", RefIdentifier);
} }
++RefIndex; ++RefIndex;
@ -2557,7 +2557,7 @@ AppendedIdentifier:
CopyStringToBufferHTMLSafe(&Text, QuoteInfo.Text); CopyStringToBufferHTMLSafe(&Text, QuoteInfo.Text);
CopyStringToBuffer(&Text, "&#8221;"); CopyStringToBuffer(&Text, "&#8221;");
} }
CopyStringToBuffer(&Text, "<sup>&#%d;</sup>", QuoteIdentifier); CopyStringToBuffer(&Text, "<sup style=\"vertical-align: super;\">&#%d;</sup>", QuoteIdentifier);
++QuoteIdentifier; ++QuoteIdentifier;
} }