33 |
|
xhtml.OpenElement("strong"); |
34 |
|
xhtml.OutputText(word + ":"); |
35 |
|
xhtml.CloseElement(); |
36 |
– |
xhtml.OutputText(" " + pronunciation); |
36 |
|
|
37 |
< |
if (!grammar.IsEmpty()) xhtml.OutputText(", " + grammar); |
37 |
> |
if (!pronunciation.IsEmpty()) xhtml.OutputText(" " + pronunciation); |
38 |
> |
if (!pronunciation.IsEmpty() && !grammar.IsEmpty()) xhtml.OutputText(","); |
39 |
> |
if (!grammar.IsEmpty()) xhtml.OutputText(" " + grammar); |
40 |
|
} |
41 |
|
|
42 |
< |
for (xml::NodeSet::ConstIterator node(definition.Begin()); |
42 |
< |
node != definition.End(); ++node) |
43 |
< |
{ |
44 |
< |
xml::ScopeElement p(xhtml, "p"); |
45 |
< |
|
46 |
< |
xhtml.OutputText(**node); |
47 |
< |
} |
42 |
> |
definition.WriteTo(xhtml); |
43 |
|
} |
44 |
|
|
45 |
|
struct Section |