Commit d60bc456 authored by Steve Lhomme's avatar Steve Lhomme

add the v4 column in the specs

git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/foundation_src@857 a6f86f6d-0131-4f8e-9e7b-e335508773d5
parent 9c906ab8
......@@ -159,6 +159,18 @@ static void AddColumnHeader(textwriter *TBody)
Th.Deep = 0;
TextElementEnd(&Th);
TextElementBegin(&Th, &Tr, T("th"));
Th.InsideContent = 1;
TextAttribEx(&Th, T("title"), T("Version 4"), 0, TYPE_STRING);
TextElementBegin(&Abbr, &Th, T("abbr"));
Abbr.InsideContent = 1;
TextAttribEx(&Abbr, T("title"), T("Version 4"), 0, TYPE_STRING);
TextElementAppendData(&Abbr, T("4"));
TextElementEnd(&Abbr);
Th.InsideContent = 0;
Th.Deep = 0;
TextElementEnd(&Th);
TextElementBegin(&Th, &Tr, T("th"));
Th.InsideContent = 1;
TextAttribEx(&Th, T("title"), T("WebM"), 0, TYPE_STRING);
......@@ -428,6 +440,19 @@ static void OutputElement(SpecElement *elt, textwriter *TBody, table_extras *Ext
else
TextElementEndData(&Td, T("*"));
// v4
TextElementBegin(&Td, &Tr, T("td"));
if (!elt->MinVersion && !elt->MaxVersion && !elt->InWebM) {
TextElementEnd(&Td);
}
else
if (!elt->MinVersion || elt->MinVersion > 4 || (elt->MaxVersion && elt->MaxVersion < 4)) {
TextAttribEx(&Tr, T("class"), T("flagnot"), 0, TYPE_STRING);
TextElementEnd(&Td);
}
else
TextElementEndData(&Td, T("*"));
// webm
TextElementBegin(&Td, &Tr, T("td"));
if (!elt->MinVersion && !elt->MaxVersion && !elt->InWebM) {
......
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