mirror of
https://git.zx2c4.com/cgit
synced 2025-07-31 16:14:28 +02:00
prefer html_raw() to write()
To make the code more consistent, and to not rely on the implementation of html(), always use html_raw(...) instead of write(htmlfd, ...). Signed-off-by: Mark Lodato <lodatom@gmail.com>
This commit is contained in:
parent
25e8ba1996
commit
d187b98557
3 changed files with 12 additions and 12 deletions
|
@ -46,7 +46,7 @@ static void print_text_buffer(const char *name, char *buf, unsigned long size)
|
|||
html("<td class='lines'><pre><code>");
|
||||
ctx.repo->source_filter->argv[1] = xstrdup(name);
|
||||
cgit_open_filter(ctx.repo->source_filter);
|
||||
write(STDOUT_FILENO, buf, size);
|
||||
html_raw(buf, size);
|
||||
cgit_close_filter(ctx.repo->source_filter);
|
||||
html("</code></pre></td></tr></table>\n");
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue