- display_string = bformat(from_ascii("equation (%1$s)"), value);
- else if (cmd == "formatted"
- // we don't really have the ability to handle these
- // properly in XHTML output
- || cmd == "nameref")
+ display_string = '(' + value + ')';
+ else if (cmd == "formatted") {
+ display_string = il->prettyCounter();
+ if (buffer().params().use_refstyle && getParam("caps") == "true")
+ capitalize(display_string);
+ // it is hard to see what to do about plurals...
+ }
+ else if (cmd == "nameref")
+ // FIXME We don't really have the ability to handle these
+ // properly in XHTML output yet (bug #8599).
+ // It might not be that hard to do. We have the InsetLabel,
+ // and we can presumably find its paragraph using the TOC.
+ // But the label might be referencing a section, yet not be
+ // in that section. So this is not trivial.