void CommandLineHelpWriter::Impl::formatBugs(const HelpWriterContext &context) { if (bugs_.empty()) { return; } context.writeTitle("Known Issues"); ConstArrayRef<const char *>::const_iterator i; for (i = bugs_.begin(); i != bugs_.end(); ++i) { const char *const bug = *i; context.writeTextBlock(formatString("* %s", bug)); } }
void CommandLineHelpWriter::Impl::formatBugs(const HelpWriterContext &context) { if (bugs_.empty()) { return; } context.writeTitle("Known Issues"); ConstArrayRef<const char *>::const_iterator i; for (i = bugs_.begin(); i != bugs_.end(); ++i) { const char *const bug = *i; TextLineWrapperSettings settings; settings.setIndent(2); settings.setFirstLineIndent(0); settings.setLineLength(78); context.outputFile().writeLine( context.substituteMarkupAndWrapToString( settings, formatString("* %s", bug))); } }