0
@@ -144,29 +144,29 @@ static void print_html_element(GString *out, element elt, bool obfuscate) {
0
g_string_append_printf(out, "%s", elt.contents.str);
0
- if (strstr(elt.contents.link
.url, "mailto:") == elt.contents.link.url)
0
+ if (strstr(elt.contents.link
->url, "mailto:") == elt.contents.link->url)
0
obfuscate = true; /* obfuscate mailto: links */
0
g_string_append_printf(out, "<a href=\"");
0
- print_html_string(out, elt.contents.link
.url, obfuscate);
0
+ print_html_string(out, elt.contents.link
->url, obfuscate);
0
g_string_append_printf(out, "\"");
0
- if (strlen(elt.contents.link
.title) > 0) {
0
+ if (strlen(elt.contents.link
->title) > 0) {
0
g_string_append_printf(out, " title=\"");
0
- print_html_string(out, elt.contents.link
.title, obfuscate);
0
+ print_html_string(out, elt.contents.link
->title, obfuscate);
0
g_string_append_printf(out, "\"");
0
g_string_append_printf(out, ">");
0
- print_html_element_list(out, elt.contents.link
.label, obfuscate);
0
+ print_html_element_list(out, elt.contents.link
->label, obfuscate);
0
g_string_append_printf(out, "</a>");
0
g_string_append_printf(out, "<img src=\"");
0
- print_html_string(out, elt.contents.link
.url, obfuscate);
0
+ print_html_string(out, elt.contents.link
->url, obfuscate);
0
g_string_append_printf(out, "\" alt=\"");
0
- print_html_element_list(out, elt.contents.link
.label, obfuscate);
0
+ print_html_element_list(out, elt.contents.link
->label, obfuscate);
0
g_string_append_printf(out, "\"");
0
- if (strlen(elt.contents.link
.title) > 0) {
0
+ if (strlen(elt.contents.link
->title) > 0) {
0
g_string_append_printf(out, " title=\"");
0
- print_html_string(out, elt.contents.link
.title, obfuscate);
0
+ print_html_string(out, elt.contents.link
->title, obfuscate);
0
g_string_append_printf(out, "\"");
0
g_string_append_printf(out, " />");
0
@@ -393,12 +393,12 @@ static void print_latex_element(GString *out, element elt) {
0
- g_string_append_printf(out, "\\href{%s}{", elt.contents.link.url);
0
- print_latex_element_list(out, elt.contents.link.label);
0
+ g_string_append_printf(out, "\\href{%s}{", elt.contents.link->url);
0
+ print_latex_element_list(out, elt.contents.link->label);
0
g_string_append_printf(out, "}");
0
- g_string_append_printf(out, "\\includegraphics{%s}", elt.contents.link
.url);
0
+ g_string_append_printf(out, "\\includegraphics{%s}", elt.contents.link
->url);
0
g_string_append_printf(out, "\\emph{");
0
@@ -595,13 +595,13 @@ static void print_groff_mm_element(GString *out, element elt, int count) {
0
- print_groff_mm_element_list(out, elt.contents.link.label);
0
- g_string_append_printf(out, " (%s)", elt.contents.link.url);
0
+ print_groff_mm_element_list(out, elt.contents.link->label);
0
+ g_string_append_printf(out, " (%s)", elt.contents.link->url);
0
g_string_append_printf(out, "[IMAGE: ");
0
- print_groff_mm_element_list(out, elt.contents.link
.label);
0
+ print_groff_mm_element_list(out, elt.contents.link
->label);
0
g_string_append_printf(out, "]");
Comments
No one has commented yet.