0
/* pad - add newlines if needed */
0
static void pad(int num) {
0
- printf("
%s","&");;
0
- printf("
%s",""");;
0
printf("%s", elt.contents.str);
0
- printf("
%s","<br/>");;
0
print_html_string(elt.contents.str, obfuscate);
0
- printf("
%s","…");;
0
- printf("
%s","—");;
0
- printf("
%s","–");;
0
- printf("
%s","’");;
0
- printf("
%s","‘");;
0
print_html_element_list(elt.children, obfuscate);
0
- printf("
%s","’");;
0
- printf("
%s","“");;
0
print_html_element_list(elt.children, obfuscate);
0
- printf("
%s","”");;
0
- printf("
%s","<code>");;
0
print_html_string(elt.contents.str, obfuscate);
0
- printf("
%s","</code>");;
0
printf("%s", elt.contents.str);
0
print_html_string(elt.contents.link.title, obfuscate);
0
print_html_element_list(elt.contents.link.label, obfuscate);
0
print_html_string(elt.contents.link.title, obfuscate);
0
print_html_element_list(elt.children, obfuscate);
0
- printf("
%s","</em>");;
0
- printf("
%s","<strong>");;
0
print_html_element_list(elt.children, obfuscate);
0
- printf("
%s","</strong>");;
0
+ printf("
</strong>");;;
0
print_html_element_list(elt.children, obfuscate);
0
print_html_element_list(elt.children, obfuscate);
0
- printf("
%s","<hr />");;
0
print_html_element_list(elt.children, obfuscate);
0
- printf("
%s","</ol>");;
0
print_html_element_list(elt.children, obfuscate);
0
- printf("
%s","</li>");;
0
- printf("
%s","<blockquote>\n");;
0
+ printf("
<blockquote>\n");;;
0
print_html_element_list(elt.children, obfuscate);
0
- printf("
%s","</blockquote>");;
0
+ printf("
</blockquote>");;;
0
print_html_element_list(endnotes->children, false);
0
printf(" <a href=\"#fnref%d\" title=\"Jump back to reference\">[back]</a>", counter);
0
endnotes = endnotes->next;
0
- printf("
%s","</ol>");;
0
/**********************************************************************
0
- printf("
%s","\\^{}");;
0
- printf("
%s","\\textbackslash{}");;
0
+ printf("
\\textbackslash{}");;;
0
- printf("
%s","\\ensuremath{\\sim}");;
0
+ printf("
\\ensuremath{\\sim}");;;
0
- printf("
%s","\\textbar{}");;
0
+ printf("
\\textbar{}");;;
0
- printf("
%s","\\textless{}");;
0
+ printf("
\\textless{}");;;
0
- printf("
%s","\\textgreater{}");;
0
+ printf("
\\textgreater{}");;;
0
printf("%s", elt.contents.str);
0
- printf("
%s","\\\\\n");;
0
print_latex_string(elt.contents.str);
0
- printf("
%s","\\ldots{}");;
0
+ printf("
\\ldots{}");;;
0
print_latex_element_list(elt.children);
0
print_latex_element_list(elt.children);
0
- printf("
%s","\\texttt{");;
0
+ printf("
\\texttt{");;;
0
print_latex_string(elt.contents.str);
0
printf("\\href{%s}{", elt.contents.link.url);
0
print_latex_element_list(elt.contents.link.label);
0
printf("\\includegraphics{%s}", elt.contents.link.url);
0
- printf("
%s","\\emph{");;
0
print_latex_element_list(elt.children);
0
- printf("
%s","\\textbf{");;
0
+ printf("
\\textbf{");;;
0
print_latex_element_list(elt.children);
0
print_latex_element_list(elt.children);
0
case H1: case H2: case H3:
0
lev = elt.key - H1 + 1; /* assumes H1 ... H6 are in order */
0
for (i = elt.key; i > H1; i--)
0
- printf("%s","section{");;
0
print_latex_element_list(elt.children);
0
case H4: case H5: case H6:
0
- printf("
%s","\\noindent\\textbf{");;
0
+ printf("
\\noindent\\textbf{");;;
0
print_latex_element_list(elt.children);
0
- printf("
%s","\\begin{center}\\rule{3in}{0.4pt}\\end{center}\n");;
0
+ printf("
\\begin{center}\\rule{3in}{0.4pt}\\end{center}\n");;;
0
- printf("
%s","\\begin{verbatim}\n");;
0
+ printf("
\\begin{verbatim}\n");;;
0
print_latex_string(elt.contents.str);
0
- printf("
%s","\n\\end{verbatim}");;
0
+ printf("
\n\\end{verbatim}");;;
0
- printf("
%s","\\begin{itemize}");;
0
+ printf("
\\begin{itemize}");;;
0
print_latex_element_list(elt.children);
0
- printf("
%s","\\end{itemize}");;
0
+ printf("
\\end{itemize}");;;
0
- printf("
%s","\\begin{enumerate}");;
0
+ printf("
\\begin{enumerate}");;;
0
print_latex_element_list(elt.children);
0
- printf("
%s","\\end{enumerate}");;
0
+ printf("
\\end{enumerate}");;;
0
- printf("
%s","\\item ");;
0
print_latex_element_list(elt.children);
0
- printf("
%s","\\begin{quote}");;
0
+ printf("
\\begin{quote}");;;
0
print_latex_element(markdown(elt.contents.str, extensions));
0
- printf("
%s","\\end{quote}");;
0
+ printf("
\\end{quote}");;;
0
/* if contents.str == 0, then print note; else ignore, since this
0
* is a note block that has been incorporated into the notes list */
0
if (elt.contents.str == 0) {
0
- printf("
%s","\\footnote{");;
0
+ printf("
\\footnote{");;;
0
print_latex_element_list(elt.children);
0
- printf("
%s","\\[em]");;
0
- printf("
%s","\\[en]");;
0
print_groff_mm_element_list(elt.children);
0
- printf("
%s","\\[lq]");;
0
print_groff_mm_element_list(elt.children);
0
- printf("
%s","\\[rq]");;
0
print_groff_string(elt.contents.str);
0
- printf("
%s","[IMAGE: ");;
0
print_groff_mm_element_list(elt.contents.link.label);
0
print_groff_mm_element_list(elt.children);
0
print_groff_mm_element_list(elt.children);
0
if (!in_list_item || count != 1)
0
print_groff_mm_element_list(elt.children);
0
- printf("
%s","\\l'\\n(.lu*8u/10u'");;
0
+ printf("
\\l'\\n(.lu*8u/10u'");;;
0
- printf("
%s",".VERBON 2\n");;
0
+ printf("
.VERBON 2\n");;;
0
print_groff_string(elt.contents.str);
0
- printf("
%s",".VERBOFF");;