Output also HTML_FOOTER with highlight --html (#550)
* Output also HTML_FOOTER with highlight --html * move html footer output after end of for loop, as only one closing tag is needed
This commit is contained in:
parent
078cab3f96
commit
b1c7768cc2
1 changed files with 5 additions and 0 deletions
|
|
@ -286,6 +286,11 @@ fn run() -> error::Result<()> {
|
|||
return Error::err(format!("No syntax highlighting query found"));
|
||||
}
|
||||
}
|
||||
|
||||
if html_mode {
|
||||
println!("{}", highlight::HTML_FOOTER);
|
||||
}
|
||||
|
||||
} else if let Some(matches) = matches.subcommand_matches("build-wasm") {
|
||||
let grammar_path = current_dir.join(matches.value_of("path").unwrap_or(""));
|
||||
wasm::compile_language_to_wasm(&grammar_path, matches.is_present("docker"))?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue