md2html: skip indent before </pre>
This commit is contained in:
parent
5196199acb
commit
733ce1b119
1 changed files with 5 additions and 1 deletions
6
md2html
6
md2html
|
@ -32,7 +32,11 @@ function level(new) {
|
|||
if (b[i]) {
|
||||
if (b[i] == "head") headers()
|
||||
indent = indent - 2
|
||||
printf("%0" indent "s</%s>\n", "", b[i])
|
||||
if (b[i]=="pre") {
|
||||
printf("</%s>\n", b[i])
|
||||
} else {
|
||||
printf("%0" indent "s</%s>\n", "", b[i])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue