diff options
author | 2014-12-24 13:08:16 -0800 | |
---|---|---|
committer | 2014-12-24 13:08:16 -0800 | |
commit | e5a2343879398351d80af0f8941c1aaea91144bc (patch) | |
tree | 39d953e37e9d43d606143961d1853a269a3c3811 /fish_indent.cpp | |
parent | 8d50b2509d2b9c1f17aa8bf3b5d4bc76811b4355 (diff) |
Use <pre><code> for fish_indent HTML output
As suggested in #1827
Diffstat (limited to 'fish_indent.cpp')
-rw-r--r-- | fish_indent.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fish_indent.cpp b/fish_indent.cpp index dfa920b9..fe8fb801 100644 --- a/fish_indent.cpp +++ b/fish_indent.cpp @@ -224,7 +224,7 @@ static std::string html_colorize(const wcstring &text, const std::vector<highlig } assert(colors.size() == text.size()); - wcstring html = L"<pre>"; + wcstring html = L"<pre><code>"; highlight_spec_t last_color = highlight_spec_normal; for (size_t i=0; i < text.size(); i++) { @@ -264,7 +264,7 @@ static std::string html_colorize(const wcstring &text, const std::vector<highlig break; } } - html.append(L"</span></pre>"); + html.append(L"</span></pre></code>"); return wcs2string(html); } |