taglist;
@@ -212,6 +217,22 @@ ParagraphList::const_iterator makeParagraphs(Buffer const & buf,
}
+ParagraphList::const_iterator makeBibliography(Buffer const & buf,
+ odocstream & os,
+ OutputParams const & runparams,
+ ParagraphList const & paragraphs,
+ ParagraphList::const_iterator const & pbegin,
+ ParagraphList::const_iterator const & pend)
+{
+ os << "\n"
+ << "
"
+ << pbegin->layout().labelstring()
+ << "
\n";
+ makeParagraphs(buf, os, runparams, paragraphs, pbegin, pend);
+ return pend;
+}
+
+
ParagraphList::const_iterator makeEnvironment(Buffer const & buf,
odocstream & os,
OutputParams const & runparams,
@@ -310,8 +331,13 @@ ParagraphList::const_iterator makeEnvironment(Buffer const & buf,
send = searchParagraph(par, pend);
par = makeParagraphs(buf, os, runparams, paragraphs, par, send);
break;
- // FIXME
+ // Shouldn't happen
case LATEX_BIB_ENVIRONMENT:
+ send = par;
+ ++send;
+ par = makeParagraphs(buf, os, runparams, paragraphs, par, send);
+ break;
+ // Shouldn't happen
case LATEX_COMMAND:
++par;
break;
@@ -385,16 +411,17 @@ void xhtmlParagraphs(ParagraphList const & paragraphs,
case LATEX_LIST_ENVIRONMENT:
case LATEX_ITEM_ENVIRONMENT: {
send = searchEnvironment(par, pend);
- par = makeEnvironment(buf, os, runparams, paragraphs, par,send);
+ par = makeEnvironment(buf, os, runparams, paragraphs, par, send);
+ break;
+ }
+ case LATEX_BIB_ENVIRONMENT: {
+ send = searchEnvironment(par, pend);
+ par = makeBibliography(buf, os, runparams, paragraphs, par, send);
break;
}
case LATEX_PARAGRAPH:
send = searchParagraph(par, pend);
- par = makeParagraphs(buf, os, runparams, paragraphs, par,send);
- break;
- case LATEX_BIB_ENVIRONMENT:
- // FIXME
- ++par;
+ par = makeParagraphs(buf, os, runparams, paragraphs, par, send);
break;
}
// FIXME??
diff --git a/src/output_xhtml.h b/src/output_xhtml.h
index 529eca9274..6ebb018f59 100644
--- a/src/output_xhtml.h
+++ b/src/output_xhtml.h
@@ -29,6 +29,8 @@ void xhtmlParagraphs(ParagraphList const & subset,
namespace html {
///
docstring escapeChar(char_type c);
+ /// converts a string to a form safe for links, etc
+ docstring htmlize(docstring const & str);
/// \return true if tag was opened, false if not
bool openTag(odocstream & os, std::string const & tag,
std::string const & attr);