cinera.c: Enforce superscription of <sup> elements
This commit is contained in:
parent
e4c1446256
commit
f6b85b5958
|
@ -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, "”");
|
CopyStringToBuffer(&Text, "”");
|
||||||
}
|
}
|
||||||
CopyStringToBuffer(&Text, "<sup>&#%d;</sup>", QuoteIdentifier);
|
CopyStringToBuffer(&Text, "<sup style=\"vertical-align: super;\">&#%d;</sup>", QuoteIdentifier);
|
||||||
++QuoteIdentifier;
|
++QuoteIdentifier;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue