improve markdown <pre> tag

This commit is contained in:
Sam Rijs 2018-01-27 22:01:49 +11:00
parent b8bd88d65b
commit f5bfc8684f
2 changed files with 8 additions and 6 deletions

View file

@ -19,7 +19,9 @@ body {
pre { pre {
font-family: "Source Code Pro", Menlo, Monaco, Consolas, "DejaVu Sans Mono", Inconsolata, monospace; font-family: "Source Code Pro", Menlo, Monaco, Consolas, "DejaVu Sans Mono", Inconsolata, monospace;
white-space: pre-wrap; overflow: auto;
word-wrap: normal;
white-space: pre;
background: #dedede; background: #dedede;
color: #555; color: #555;
padding: .5em .7em; padding: .5em .7em;

View file

@ -61,17 +61,17 @@ pub fn status_html(analysis_outcome: AnalyzeDependenciesOutcome, repo_path: Repo
code (format!("{}/{}", repo_path.qual.as_ref(), repo_path.name.as_ref())) code (format!("{}/{}", repo_path.qual.as_ref(), repo_path.name.as_ref()))
} }
h2 {
"Crate "
code (analysis_outcome.name.as_ref())
}
img src=(format!("/{}/status.svg", self_path)); img src=(format!("/{}/status.svg", self_path));
pre { pre {
(format!("[![dependency status]({}/status.svg)]({})", status_base_url, status_base_url)) (format!("[![dependency status]({}/status.svg)]({})", status_base_url, status_base_url))
} }
h2 {
"Crate "
code (analysis_outcome.name.as_ref())
}
@if !analysis_outcome.deps.main.is_empty() { @if !analysis_outcome.deps.main.is_empty() {
h3 "Dependencies" h3 "Dependencies"
(dependency_table(analysis_outcome.deps.main)) (dependency_table(analysis_outcome.deps.main))